A sacrifice fly that traveled no more than 20 feet off the infield dirt and a blooper that fell in front of one of the best center fielders in the game helped lift the Rangers to a 4-3 victory Sunday at Angel Stadium.

The win allowed the Rangers to avoid a three-game sweep to the Angels and remain 1 ½ games behind Oakland in the American League West. Nick Tepesch and six relievers limited the Angels to their lowest output of the series.

The Rangers were down 3-2 with one out in the seventh when Leonys Martin walked and Ian Kinsler followed with a ground-rule double ahead of Elvis Andrus.

The Angels elected to play the infield in to keep the tying run from scoring on a grounder but Andrus lifted a popup into shallow right-center field.

Second baseman Grant Green had no shot at the ball and right fielder Kole Calhoun raced in for a diving catch. But he was on the ground long enough for Martin to tag up and score for a 3-3 tie.

Alex Rios slotted in the No. 3 hole for the first time since the Rangers acquired him Aug. 9 lifted a blooper toward Mike Trout in center field. But the ace defensive player dived and couldn’t make the catch as Kinsler coasted home with the go-ahead run.

Rios homered three batters into the game for the Rangers who struck in the first inning for the second consecutive game only to see the lead disappear for having a chance to build on it.