It was far from the ideal formula to beat the Royals, but the White Sox came away Wednesday with a mixture of confidence and relief after a strange 5-2 victory.

The Sox, who committed an American League-low 70 errors in 2012, were guilty of three miscues. Tyler Flowers also was thrown out easily at home plate in the seventh inning while trying to score on an errant pitch.

One of the Sox's missions this offseason was to reduce their reliance on the home run while cutting down on strikeouts and hitting more effectively with runners in scoring position.

But they survived on the strength of four home runs, including Flowers' second in as many games that snapped a 1-1 tie in the third.

And they managed to beat the Royals a second time this season after having lost to them in 12 of their 18 games last year even though they didn't get a hit with a runner in scoring position for the second consecutive game.

"A bad team or a team without as much confidence or as tight as we are, stuff can get away from you," said Jake Peavy, who overcame shoddy defense in the third to beat the Royals for the first time since May 15, 2010. "We can get into the dugout and laugh it off and say 'Let's go.' And let it go. And we did it numerous times just by rallying and saying, 'This isn't going to beat us.'''

Flowers provided somewhat of an alibi for the miscues.

"Those are plays that probably should be made, but they're not easy plays," Flowers said. "That gives everyone a glimpse that everyone out here is human. That's going to happen.

"It wasn't lack of effort or anything. I'm sure we're going to learn from it and avoid it next time."

The Sox bullpen provided instant relief after Dewayne Wise, who replaced Dayan Viciedo (who committed an error in the third), dropped a ball near the left field line to start the seventh and the Royals eventually loaded the bases with one out.