BUFFALO, N.Y. (AP) — Tyree Jackson threw for 358 yards and three touchdowns — all to Anthony Johnson — and ran for three more scores to help Buffalo beat Miami (Ohio) 51-42 on Tuesday night and remain unbeaten in Mid-American Conference play.

Jackson was 20-of-34 passing with no interceptions. Johnson finished with eight receptions for a career-high 238 yards and Jaret Patterson had 96 yards rushing and a score on 23 carries for Buffalo (8-1, 5-0), which has won four in a row.

Miami's Gus Ragland hit Kenny Young for a 59-yard touchdown and then, less than two minutes later, scored on a 1-yard run to make it 42-all going into the fourth quarter. Patterson's 4-yard TD run put Buffalo back in front with 8:53 to play and, after Miami failed to convert a fourth-and-5 from midfield, Adam Mitcheson's 37-yard field goal nearly five minutes later capped the scoring. The four-year starter became the program's career leader with 45 made field goals.

Ragland completed 20 of 35 for 313 yards and had 16 carries for 53 yards and three scores for Miami (3-6, 3-2).