TAMPA, Fla. - Tony Romo was nearly flawless in getting the Dallas Cowboys back on track in the NFC East.

Romo threw for three touchdowns and ran for a fourth score Saturday night, helping the first-place Cowboys beat the struggling Tampa Bay Buccaneers, 31-15.

Dallas stopped a two-game losing streak in which it blew fourth-quarter leads to allow a seemingly solid grip on the division lead to slip away.

The victory gave the Cowboys (8-6) a half-game lead over New York. The Bucs (4-10) lost their eighth straight.

Romo threw a pair of 8-yard TD passes to Miles Austin and Dez Bryant in the first quarter, then finished a seven-play, 89-yard drive with a 9-yarder to Laurent Robinson to make it 21-0 with just under 5 minutes remaining in the second quarter. Romo made it 28-0 on a quarterback sneak in the closing seconds of the opening half.