WASHINGTON (AP) ó Ryan Langerhans hit a three-run homer, Jason Bergmann won for the first time in more than two months, and the Washington Nationals held on to edge the Houston Astros 7-6 Wednesday.

Bergmann (2-5) was charged with four runs and six hits over seven-plus innings, earning his first victory since May 14 when he took a no-hitter into the eighth against Atlanta. After that start, though, the right-hander went on the disabled list and has struggled since his return.

He gave up solo homers to Mike Lamb in the second inning and Luke Scott in the fifth. But thanks to a rare offensive outburst by the Nationals, Bergmann took a 7-2 lead into the seventh.

Thatís when he gave up consecutive singles to Lamb and Scott, then departed in favor of Ray King. But the lefty threw only two pitches, the second of which Eric Munson hit for an RBI ground-rule double, part of a four-run rally that also included run-scoring hits by Lance Berkman and Carlos Lee off Saul Rivera.

Their lead down to one run, the Nationals held on, thanks to a perfect eighth from Jon Rauch and a scoreless ninth from closer Chad Cordero, who earned his 17th save. The Astros put the potential tying run on third with two outs on a throwing error by third baseman Ryan Zimmerman and a wild pitch, but Hunter Pence grounded out to end the game.

Washington did all of its scoring against Jason Jennings (1-6), who lost his fifth consecutive start ó the worst stretch of the 2002 NL Rookie of the Yearís career.

With heavy rain falling in the first inning, Jennings walked Zimmerman and Dmitri Young. That set up Ryan Church's RBI double just inside the right-field foul line, followed by Austin Kearnsí two-run double just inside the third-base bag.

Belliardís RBI double in the second made it 4-1 and extended his hitting streak to 11 games, matching the longest for any Nationals player in 2007.