(AP) — The Chicago Cubs took advantage of a bad throw to win their third in a row.

Albert Almora Jr. led off the bottom of the 13th with a double and scored the winning run on an error by shortstop Freddy Galvis to complete the Cubs' 5-4 victory over the visiting Phillies. Galvis was trying to complete an inning-ending double play when he bounced his relay throw to first, sending Philadelphia to its sixth loss in seven games.

Kris Bryant had four hits for the Cubbies, while teammate Miguel Montero provided a solo homer and a sacrifice fly.

Cameron Rupp homered off Carl Edwards Jr. leading off the eighth to give the Phils a 4-3 lead, but Montero went deep against Joaquin Benoit in the bottom half.

Other MLB finals:

— The Nationals were 4-2 winners over Arizona as Max Scherzer was reached for just one run and two hits while fanning 11 over seven innings. Scherzer also was 2-for-3 with an RBI single as Washington took the rubber match of the three-game series.

— Ryan Hanigan was productive in his Rockies debut, going 3-for-5 with a homer and two RBIs in a 3-2, 11-inning win at San Diego. Hanigan hit an infield single to break a 2-2 tie and send Colorado to its second straight victory since a two-game skid.

— The Brewers won a series in St. Louis for the first time in their last 18 visits as Jesus Aguilar's first major league home run broke a seventh-inning tie in a 5-4 decision over the Cardinals. The Redbirds lost a pair of outfielders during the game as Stephen Piscotty strained his right hamstring and Dexter Fowler strained his right shoulder.

— Joey Votto doubled twice, drove in two runs and scored twice in the Reds' 4-2 verdict over the Pirates. Adam Duvall drove in Votto both times in Cincinnati's fourth win in five games.

— Manny Machado crushed a three-run homer and the Orioles gained a split of their four-game set at Boston by thumping the Red Sox, 8-3. Seth Smith had four of Baltimore's 17 hits to back Tyler Wilson, who allowed three runs and six hits in six innings.

— The Rangers had dropped four in a row before Joey Gallo, Rougned Odor and Elvis Andrus homered in a 10-4 rout of the Astros in Houston. Mike Napoli added a two-run double and Gallo had three RBIs to help A.J. Griffin improve to 3-0. Griffin yielded one earned run in five innings in his return from the disabled list because of gout in his left ankle.

— Danny Valencia was 4-for-5 with a solo homer and three RBIs to highlight Seattle's 11-3 pounding of the Angels. Ben Gamel had three hits, two ribbies and three runs scored to back Ariel Marinda's seven innings of two-run ball.

— Jharel Cotton struck out nine in six innings as Oakland outscored the Twins, 8-5 at Minnesota to avoid a three-game sweep. Ryon Healy homered and Stephen Vogt had two RBIs in the Athletics' second win in 10 games. Danny Santana, Eddie Rosario and Eduardo Escobar homered for the Twins, who loaded the bases in the ninth before Santiago Casilla struck out Miguel Sano to end the game.

— The White Sox whipped the Royals, 8-3 in Kansas City behind Derek Holland, who gave up one earned run and three hits over 6 2/3 innings. Jose Abreu and Matt Davidson went deep off Ian Kennedy, who left with a strained right hamstring in the fifth inning.

— Tim Beckham homered twice and collected four RBIs as Tampa Bay whipped Miami, 5-1. Matt Andriese tossed five-hit ball over seven scoreless innings to help the Rays beat the Marlins for the third time in four days.

— The Mets were leading the Braves 3-1 in the top of the fourth in Atlanta when the game was postponed following a two-hour rain delay. No makeup date was immediately announced.

— The Tigers and Indians were rained out in Detroit. No makeup date has been announced.

MLB-NEWS

Harper hurts groin

(AP) — The Nationals could spend a few days without Bryce Harper in their outfield.

Manager Dusty Baker says the right fielder is day to day after injuring his left groin while diving to make a catch on Thursday. Harper batted three more times and was lifted after six innings.

Harper is hitting .376 with nine homers and 27 RBIs.

Also in the majors:

—The Chicago White Sox have placed reliever Nate Jones on the 10-day disabled list with right elbow inflammation and purchased the contract of left-hander David Holmberg from Triple-A Charlotte. White Sox general manager Rick Hahn says Jones's elbow issue is "relatively minor" and he should be back in a couple of weeks.