Milwaukee shortstop Jean Segura decided to stay positive throughout his struggles at the plate the past five weeks.
That approach paid off Sunday as he got a career-high three hits in the Brewers' 5-4, 10-inning loss to the St. Louis Cardinals.
Segura came into the game hitting .210 and left with a .238 mark.
"That's what I'm all about, staying positive no matter what happens," he said. "You just keep working hard and everything will be OK."
Segura, who went 3 for 3, was called up from Double-A Huntsville on Aug. 6. He has made 24 starts at shortstop.
Segura walked in the first inning and his RBI single with two outs in the fourth brought the Brewers within 4-2.
The Brewers, who have won 15 of 20, tied it in the ninth when Segura doubled with one out and Norichika Aoki hit a two-out, two-run homer off closer Jason Motte. The two-strike drive barely cleared the right-field wall.
Plus, Segura turned in a pair of nice defensive plays, which impressed manager Ron Roenicke.
Allen Craig hit an RBI single with two outs in the 10th as the Cardinals avoided a three-game sweep.
The Cardinals broke a three-game losing streak and avoided a three-game sweep. St. Louis held onto its slim lead for the second NL wild-card spot.
The loss slowed the Brewers, who were trying to reach the .500 mark for the first time since April 24.
"We played a really good game today, they just came through with a really big hit," Roenicke said. "I'm OK with the three games we just played."
Lance Lynn (14-7) picked up the win with one inning of scoreless relief.
Matt Holliday hit a two-run homer, his 26th, off Shaun Marcum. One out later, Carlos Beltran hit his 29th home run and first since Aug. 10.
Beltran ended an 0-for-14 slump. He had not gotten an extra-base hit in his previous 49 at-bats.
St. Louis pushed the lead to 4-1 in the second on doubles by pitcher Joe Kelly and Carpenter.
Milwaukee climbed to 4-2 in the fourth on singles by Corey Hart, Jonathan Lucroy and Segura.
Aoki tied it with his eighth home run.
"I was just thinking that if I got a good pitch to hit, just swing at it and it didn't matter if I struck out," Aoki said through a translator. "I just wanted to get a good swing on it."
NOTES: Brewers OF Ryan Braun left in the sixth with a sore wrist. Hart, who has a hit in his last 11 games against St. Louis, left the game after twisting his ankle on the last play of the fourth inning. "He tweaked it a little bit and he's got a mild sprain," Roenicke said. Braun and Hart were listed as day-to-day. ... Milwaukee begins a six-game homestand Monday, taking on Atlanta. Wily Peralta (1-0, 5.14) faces the Braves' Mike Minor (8-10, 4.58).