HOUSTON -

Jason Castro hit a grand slam, Collin McHugh threw seven solid innings and the Houston Astros beat the Texas Rangers 4-2 Thursday night.

McHugh (7-9) earned his third straight win, allowing two runs and eight hits while striking out six.

In his six August starts, McHugh gave up eight runs over 37 2-3 innings.

Castro snapped an 0-for-20 slump with a single in the second. In the fifth, he wiped out Texas' 2-0 lead.

Jose Altuve singled in the Houston fifth and Chris Carter walked, finishing starter Nick Tepesch. Dexter Fowler reached on an infield single to set up Castro's second career grand slam, a drive off Ramon Mendez (0-1).

Josh Fields pitched the eighth and Tony Sipp worked the ninth for his second save.