Matt Cain ended April with a 6.49 ERA. He allowed nine home runs in 34 2/3 innings and he went winless. Bet you didn't see that coming. What had to be the worst month of Cain's career ended with the roof open on a 99-degree night at Chase Field and another barrage of home runs, this time all in one inning. Thus, one of the Giants' biggest puzzles in many years continues. The difference Monday night was the outcome. The Giants rode a two-run Brandon Belt single in the eighth inning to a 6-4 victory that ended their five-game losing streak. A lot of good things happened for the Giants. Belt homered and had three RBIs from the eighth spot in the lineup, Marco Scutaro looked more like the 2013 version than he had all season with two singles and a double, and Jean Machi earned his first big-league win at age 31. Bad things happened, too. Manager Bruce Bochy was ejected in the fifth inning after arguing the second close play at first base that did not go the Giants' way. Pablo Sandoval had to leave in the sixth after his right elbow flared up as it did in spring training, though not as severely. Bochy said Sandoval might need Tuesday night off. "I don't think so," Sandoval replied. But the biggest negative, on a night otherwise reserved for exhaling with a win, again was Cain. He surrendered three more home runs, giving him nine for the season, or as many as he allowed in all of 2011.