Adrian Beltre hit a go-ahead homer in the seventh, David Murphy added an insurance run with a solo shot in the eighth and the Texas Rangers held on for a 6-4 victory over the Blue Jays.

It was a much-needed win for the Rangers, who had lost four of their last five including an 18-inning game Saturday.

The Rangers battled back from a four-run deficit. Starter Justin Grimm had two outs in the third inning, but unraveled.

Grimm walked Melky Cabrera then gave up an infield single to Jose Bautista and RBI single to Edwin Encarnacion. The big blow came from Adam Lind, who swatted a three-run homer.

The Rangers scratched their way back in it. They scored two runs in the fourth on a solo homer by Nelson Cruz and RBI double by Chris McGuiness. Cruz then delivered an RBI single in the fifth to make it a 4-3 game.

The Rangers tied it in the sixth when Leury Garcia scored from third when Craig Gentry stole second. Beltre and Murphy then homered the next two innings.