Manager Rick Renteria had a blend of rock, pop, jazz and salsa music playing in his office less than eight hours after the Chicago Cubs dropped a 16-inning game to the Pittsburgh Pirates.

"Whatever it takes," Renteria said Thursday before the Cubs tried to salvage the final game of a three-game series.

Despite left fielder Junior Lake wearing the wrong uniform top in the first inning, the Cubs held on for a 3-2 win.

Emilio Bonifacio continued his amazing start by starting off the game with a single, stealing second base and scoring on a two-out hit by Anthony Rizzo off left-hander Wandy Rodriguez.

As Lake was changing his jersey top in the top of the second, Mike Olt hit his first major league home run - an opposite-field shot that landed in the right field seats.

Bonifacio has 11 hits and four stolen bases this season.

The Cubs added another run in the third as Bonifacio led off with a double, advanced to third on a single by Starlin Castro and scored on a double-play grounder by Justin Ruggiano.

That run loomed large because the Pirates scored twice on a single by Tony Sanchez off reliever Justin Grimm with two out in the seventh.

The Pirates put the tying and go-ahead runs on base in the eighth, but Brian Schlitter induced Pedro Alvarez to hit a grounder in front of the mound for the final out.