After benefiting from a brutal umpire’s call in the eighth inning, the Diamondbacks proceeded to score three runs in the ninth off closer Brandon League in a comeback win over the Dodgers on Monday night.

Willie Bloomquist’s infield single behind the second-base bag allowed two runners to score as the Diamondbacks won the opener of a three-game series at Dodger Stadium.

Diamondbacks closer Heath Bell walked a tightrope in bottom of the ninth but escaped a jam to secure the win.

Ninth-inning explosion: Trailing 3-1, Martin Prado (single) and Gerardo Parra (double) started the Diamondbacks’ rally off League, putting runners on second and third with one out in the ninth. After that, they didn’t hit a ball out of the infield before managing to take the lead.

Pinch-hitter Jason Kubel grounded a single to second base, where Mark Ellis knocked the ball down but couldn’t make the play. That cut the Dodgers’ lead to 3-2. Another pinch-hitter, Didi Gregorius, followed with a walk, loading the bases.

After A.J. Pollock popped out, Bloomquist hit a sharp ground ball up the middle. Dodgers shortstop Nick Punto dived and kept the ball on the infield, but he couldn’t corral it. By the time the Dodgers’ retrieved it, pinch-runner Josh Wilson had raced home with the go-ahead run.

Paul Goldschmidt followed with an RBI single to make it 5-3.

Bell’s high-wire act: Bell has been reliable since taking over the closer’s role a month ago, but he managed to make things interesting in the ninth.

Looking to protect a two-run lead, Bell gave up a solo home run to Juan Uribe to open the inning and cut it 5-4. Tim Federowicz dropped a double into right field on a ball that a diving Parra could not catch, and an error by Prado on a sac bunt attempt put runners on the corners with nobody out.

But Bell got the next three batters — Punto popped to shallow left, Ellis struck out and Adrian Gonzalez bounced back to the mound – to preserve the win.

View from the press box: It’s kind of amazing to consider that the Diamondbacks starting rotation has been in such a funk over the past 12 games and yet they still have a 6-6 record. The offense has gone into slumps and the bullpen has had stretches of ineffectiveness, but at least so far this season the Diamondbacks have been able to avoid any prolonged losing streaks. Being able to keep your head above water when things aren’t going well is generally the sign of a good team.