CINCINNATI (AP) — Christian Yelich led Milwaukee’s big comeback by hitting for the cycle on Wednesday night, and Jesus Aguilar homered in the 10th inning, powering the Brewers to a 13-12 victory over the Cincinnati Reds.

Aguilar connected off Raisel Iglesias (2-3) for Milwaukee’s fourth homer of the game, halting the Brewers’ month-long slide. Milwaukee has dropped 11 of 20 and slipped into third place in the NL Central, five games behind the Cubs.

Yelich became the eighth Brewer s player to hit for the cycle and the first since George Kottaras on Sept. 3, 2011, at Houston. He also matched the club record with six hits of the Brewers’ 22 hits, including a two-run homer.

Mike Moustakas’ solo shot put Milwaukee ahead 11-10 in the eighth, but Joakim Soria’s wild pitch allowed Billy Hamilton to score the tying run in the bottom of the inning. Jeremy Jeffress (7-1) gave up Brandon Dixon’s homer in the 10th.

The Brewers extended their Great American Ball Park record to 21 straight games with at least one homer. Cincinnati connected five times, including a disputed three-run shot by reliever Michael Lorenzen that made it 10-6 in the sixth inning.

Taylor Williams threw an up-and-in pitch to Lorenzen, who was trying to bunt with two runners aboard and two strikes. The ball deflected off Lorenzen’s bat as he pulled away, and plate umpire Tony Randazzo ruled — over the objection of Brewers manager Craig Counsell — that Lorenzen was trying to avoid the pitch rather than bunt it.

Given an extra chance, Lorenzen connected on the next pitch for his fourth homer of the season, flipping his bat as he rounded the bases.

Hamilton hit his fourth career leadoff homer and matched his career high with four hits. He left after his hard slide into home to score the tying run in the eighth.