Dale Sveum had to laugh after the dramatic circumstances that preceded the Cubs' 5-4 victory over the Brewers Wednesday night.

"I'm going to have to start shaving my head and face completely so you can't see all the gray," Sveum said after the Cubs snapped a nine-game losing streak to the Brewers at Miller Park.

The Cubs entered the ninth with a 5-3 lead after six strong innings from winning starter Scott Feldman and two scoreless frames from setup men James Russell and Carlos Villanueva.

Closer Kevin Gregg then promptly yielded a leadoff homer to Juan Francisco to make it 5-4 in the ninth. Then Rickie Weeks followed with a double and Logan Schafer sacrificed him to third.

Fortunately for the Cubs, Yuniesky Betancourt pulled a ball hard to third baseman Luis Valbuena as Weeks took off on contact. The throw to the plate nailed Weeks as catcher Welington Castillo managed to hold on to the ball in a collision.

The drama ended when Scooter Gennett's drive to deep right field was hauled in at the wall by right-fielder Nate Schierholtz to end the game.

"I was kind of glad they gave us an out there (with the sacrifice) instead of swinging the bat," Sveum said. "Valbuena made a great play. They went on contact and tried to steal a run there. And then Scooter … the ball left the bat and I ain't lying, I thought it was a homer, especially in this ballpark."

Gregg was credited with his 12th save in as many opportunities.

"In this park, you never know," Gregg said of Gennett's long, loud out. "The ball tends to carry. I knew it wasn't a no-doubter (home run), but it plays pretty short over there (in right field). Luckily, it stayed in."