WACO, Texas (CBSDFW.COM/AP) — No. 12 Baylor got quite defensive to remain undefeated.

While Charlie Brewer threw for 277 yards with two touchdowns, the defense blocked a late field goal try while allowing only one big play, and the Bears won a game when scoring less than 20 points for the first time since 2006.

“A tremendous, tremendous defensive game,” coach Matt Rhule said after the 17-14 victory over West Virginia on Thursday night. “We are still learning that it’s OK just to play defense and not worry.”

John Mayers kicked a go-ahead 36-yard field goal with 10:19 left to break a 14-all tie, and Baylor won its 10th game in a row despite an often frustrating night on offense and special teams.

Two seasons after winning only one game, the Bears (8-0, 5-0 Big 12) are the league’s only undefeated team — and one of eight remaining among FBS teams.

“Don’t apologize for going 8-0, for winning this game,” Rhule said. “Just have to continue to improve as we try to move forward.”

West Virginia (3-5, 1-4) had eight quarterback sacks. With second-and-goal from the 1 late in the second quarter, Baylor was stuffed for no gain on three consecutive plays and had to settle for a 7-0 halftime lead.

Still, the Bears avoided what happened last Saturday, when while they had an open date the Big 12’s other three ranked teams that did play lost. That included Oklahoma’s loss at Kansas State that left Baylor alone atop the conference standings.

“We talked about how this wasn’t good enough,” linebacker Jordan Williams said. “We need to grow from it because we don’t want to have that same feeling those teams had.”

After R.J. Sneed muffed a punt that was recovered at the Baylor 34, West Virginia couldn’t get a first down.

“We’re pretty good on defense,” linebacker Blake Lynch said.

Casey Legg kicked the ball through the uprights on a 43-yard field goal attempt, but the Mountaineers were penalized for delay of game and had to try again. Nose tackle Bravvion Roy then blocked Legg’s 48-yard attempt with 3 1/2 minutes left.

The Mountaineers had two big plays for their touchdowns. George Campbell had an 83-yard catch-and-run from Austin Kendall on the first play after a punt, and Winston Wright went 95 yards for the Mountaineers’ first kickoff return for a touchdown in five years.

West Virginia finished with 219 total yards, 136 outside of that one big play.

Wright’s return was on the ensuing kick after Brewer’s 21-yard TD pass to Denzel Mims, who had opened the second half by fumbling at the end of a 30-yard reception on his first catch since taking a hard hit early in the game.

West Virginia beat Baylor 58-14 last year, but the Mountaineers were coming off a 52-14 loss at Oklahoma in their last game and came into this game as a nearly three-touchdown underdog.

“A lot of guys hurt in that locker room. I hurt for them,” first-year Mountaineers coach Neal Brown said. “I hurt because they invested. They came up short. I don’t’ know if we necessarily got beat, but we came up short.”

Baylor will now get ready for a game next Saturday at the TCU Horned Frogs.

(© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)