Manager Don Mattingly has thought about replacing Brandon League with Kenley Jansen for the ninth-inning job. Now he’s got an equally undesirable problem with set-up man Ronald Belisario, who has allowed runs in three of his last four appearances after an adventurous seventh inning against the Miami Marlins on Friday.

Charged with preserving a 3-3 tie in the seventh inning, Belisario allowed three consecutive hits – including the go-ahead RBI single to former Dodger Juan Pierre – and two runs as Miami came back from an early 3-0 deficit for a 5-4 victory in front of an announced crowd of 41,721 at Dodger Stadium.

The loss was the Dodgers’ eighth in a row and extended their longest losing streak of the season.

“It seems like we bring a reliever in, and the last few games our big boys,” Mattingly said, referring to League and Belisario. “These are the guys we really try to get to.

“That formula, like everything else right now, doesn’t seem to be working.”

With Belisario on in relief of J.P. Howell, Rob Brantly led off the seventh inning with a single. Chris Coghlan hit a belt-high sinker to left-center that caromed off the top of the fence and back onto the field, sending Brantly to third. Miami manager Mike Redmond requested a video review to determine if the ball was a home run.

Umpire Tom Hallion and his crew upheld the original call and Redmond did not protest. With runners on second and third, Pierre singled and Adeiny Hechevarria grounded into a double play to put the Marlins ahead 5-3.

Belisario allowed three hits and two runs in the seventh inning, raising his ERA to 4.15. He came back out for the eighth and walked Justin Ruggiano before being replaced by left-hander Paco Rodriguez.

As has been the case so often during the losing streak, the Dodgers undid much of their own good work. Carl Crawford went 3 for 5, A.J. Ellis went 3 for 4 and Matt Magill pitched five serviceable innings in his third major-league start.

The Dodgers jumped out to a 3-0 lead on rookie right-hander Jose Fernandez in the first inning.

Crawford led off the game with a single and Nick Punto walked. The next batter, Adrian Gonzalez, sent an 87-mph change-up over the fence in right-center to put the Marlins in a 3-0 hole 10 pitches into the inning. It was Gonzalez’s fourth home run of the season.

From that point on, Fernandez was in a groove.

The Dodgers stranded runners on second base in each of the first two innings and didn’t challenge again until pinch-hitter Juan Uribe led off the fifth inning with a single.

Crawford singled to give the Dodgers runners on first and second with no outs. Punto squared up to bunt, then pulled his bat back at the last second. Uribe started toward third base on the play and easily was picked off by the catcher, Brantly, ending the threat.

“That was definitely a momentum changer,” said Mattingly, who hesitated before pinning the blame on Uribe. “It’s a tough play because you’re trying to get a jump at second base … when (the batter) goes to bunt, you’re anticipating that break.”

Fernandez put out one more fire when the Dodgers loaded the bases in the sixth on a single by Ellis, a double by Skip Schumaker and an intentional walk to Dee Gordon. But pinch-hitter Tim Federowicz popped out to shallow center field, ending the inning.

Fernandez, whose fastball peaked at 98 mph and ended at 97 on his final pitch to Federowicz, finished with two walks and seven strikeouts in six innings.

“He’s one of those guys who gets settled early,” Mattingly said. “He gets better as the game goes on.”

Neither Fernandez nor Magill factored into the decision because Miami tied the game 3-3 on a three-run home run by Derek Dietrich in the fourth inning.

Magill was otherwise solid in five innings, allowing three hits, walking four and striking out two. He worked quickly, but the Simi Valley native was not efficient in throwing 93 pitches in his third major-league start.

“I didn’t hit my spots like I needed to,” Magill said. “I take full responsibility for this loss.”

The Dodgers drew within a run against journeyman reliever Chad Qualls in the eighth inning when Kemp singled, stole second base and scored on an RBI single by Ellis. With Ellis on third base and two outs, Qualls got Gordon to ground out to end the inning.

The Dodgers left seven runners on base and went 2 for 8 with runners in scoring position.