Leicester manager Nigel Pearson said his side were a little sloppy, but did what they needed to do to beat Sheffield Wednesday.