In a game full of 22 hits and 15 runs, a pair of walks from closer Cody Allen in the bottom of the ninth inning proved to be the Cleveland Indians’ undoing against the Toronto Blue Jays at Rogers Centre Wednesday night.

Allen allowed back-to-back walks to load the bases, and then, shortstop Ryan Goins smoked the first pitch he saw from the veteran reliever down the right-field line for the game-winning RBI single in an 8-7 come-from-behind win for the Blue Jays (13-21) over the Indians (18-15).

Right fielder Ezequiel Carrera slapped a one-out single into center field to start the rally, and after designated hitter Jose Bautista struck out swinging, Allen got two strikes on both first baseman Justin Smoak and left fielder Steve Pearce, but could no longer locate the strike zone and gave up the consecutive free passes.

The Indians scored the first two runs of the game in the first inning when second baseman Jason Kipnis brought around first baseman Carlos Santana and shortstop Francisco Lindor with a two-run double to deep right field on a 1-1 pitch from Blue Jays starter Francisco Liriano.

Santana was on with a lead-off walk, and Lindor followed with a single to right field on a 1-1 offering.

However, the Blue Jays had a three-run answer in the bottom half of the first inning.

After center fielder Kevin Pillar drew a five-pitch walk from Indians starter Danny Salazar, Carrera singled to center field on an 0-1 offering. Then, with the count full, Bautista lined a home run over the wall in left field, which gave Toronto a 3-2 edge.

The Indians responded with five runs in the top of the third inning, and again, it was the top of the order that set the table for the rally.

After Santana walked, Lindor singled to left-center field, and Kipnis followed with an RBI single to right-center field, which brought around Santana. A walk to designated hitter Edwin Encarnacion loaded the bases, and third baseman Jose Ramirez put the Indians in front, 4-3, with an RBI single to right field.

Down in the count, 1-2, left fielder Brandon Guyer fouled off four straight pitches from reliever Dominic Leone before belting a double to the wall in right field, which cleared the bases and gave the Indians a 7-3 advantage.

Guyer was thrown out trying to stretch the double into a triple, which proved costly, as catcher Yan Gomes, the next hitter in the lineup, would have brought him around to score when he doubled to deep right-center field.

The Blue Jays got two runs back in both the third and fourth innings, the latter of which knotted the score at 7-7.

In the bottom of the third inning, Pearce drove in Bautista when he lifted a sacrifice fly to right field. Bautista was on with a one-out walk on just four pitches. Goins followed with an RBI single to center field, which brought around Smoak, who fouled off two pitches before doubling to right off of Salazar.

The Indians went to the bullpen in the bottom of the fourth inning, but Dan Otero struggled to keep the ball in the yard, and he was done in by a former Cleveland outfielder when Carrera smacked a two-run home run over the wall in right field.

With his third home run of the season, Carrera drove in third baseman Darwin Barney, who doubled to center field to start the frame.