Updated

LOS ANGELES (AP) Pinch-hitter Kike Hernandez delivered the go-ahead, two-run double during the Dodgers' five-run seventh inning, and Los Angeles rallied from a three-run deficit for a wild 10-7 victory over the Oakland Athletics on Wednesday night.

Yasiel Puig hit a two-run homer on his bobblehead night for the Dodgers (57-45), who snapped their three-game losing streak and avoided falling out of first place for the first time in two months.

Puig added an RBI single in the seventh, capping the Dodgers' comeback after the last-place A's scored four runs in the top half of the seventh to take a 6-3 lead.

Brett Lawrie had a ninth-inning homer among his career-high four hits and four RBIs for Oakland, which has lost five of six.