FOXBOROUGH, Mass. — The injuries keep piling up for the New England Patriots.

But so do the wins.

The undefeated defending NFL champions scratched and clawed their way to a 20-13 victory over the Buffalo Bills on Monday night but suffered more manpower problems with a game at Denver coming up on Sunday night.

Danny Amendola, who replaced injured Julian Edelman as the primary possession receiver and caught nine passes for 117 yards, suffered a knee injury in the third quarter after fellow receiver Aaron Dobson went out with an ankle injury. Amendola was hurt when he was back to return a punt and the ball bounced without him fielding it.

So the Patriots (10-0) finished the tough, physical battle with two wide receivers and one of them, Chris Harper, was just brought back from the practice squad.

It led to an uneven win.

“I don’t think that’s an excuse. I think we can play better,” quarterback Tom Brady said after his 25th win in 28 starts against the Bills. “I think some of the things that we didn’t do well had nothing to do with missing some of the guys. We’ve just gotta do things better if we want to score more points.”

James White, who has gone from inactive to replacing injured Dion Lewis as the third-down back, scored the first two touchdowns of his NFL career, one of a nifty pass catch-and-run, and Stephen Gostkowski kicked two field goals as the Patriots won their 13th straight dating to the 2014 postseason.

“We’ll take it and move on to Denver,” coach Bill Belichick said.

Amendola made it off the field on his own and never left the sideline. Dobson was helped off the field and was taken the rest of the way to the locker room on a cart.

Brady, pressured and hit throughout, threw one touchdown pass and his third interception of the season, finishing 20 of 39 for 277 yards. He is 26-3 lifetime against Buffalo, including 2-0 this season.

“It’s better than some of the days he’s had against us,” Buffalo coach Rex Ryan said. “He’s smart. He gets rid of the ball when he needs to. He doesn’t take risks.”

And he also called Ryan’s name on an audible.

“He likes me, I know that,” Ryan quipped.

Running back LeSean McCoy, who had 82 yards rushing and 41 receiving, scored on a 27-yard touchdown run to tie it at 10 for the Bills (5-5) in the third quarter. But he also dropped a touchdown pass.

“It’s very frustrating, just thinking we had chances to win,” he said, adding, “but we’ll get better.”

A fumbled punt by Buffalo’s Leodis McKelvin helped New England get the field goal that made it 20-10 with 47 seconds left in the third quarter. Dan Carpenter’s second field goal of the game brought the Bills closer with 3:30 left, and Buffalo had one last chance to tie it.

New England scored in the first three quarters but came up empty in the fourth, ending a run of an NFL-record 38 straight quarters with points since being blanked in the first quarter of the season.

Bills quarterback Tyrod Taylor, who missed on several deep balls, was impressive under pressure and finished 20 of 36 for 233 yards. Wide receiver Chris Hogan had six catches for 95 yards. Taylor injured his right shoulder late and stayed in the game.

The officials had a terrible night, often appearing as if they had no idea what was going on.

A bizarre play in the third quarter may well have taken seven points away from New England. Brady scrambled to his right and, as he was nearing the sideline, threw 14 yards to an open Amendola, who had only one opposing player between himself and a touchdown.

But a whistle blew and, after a long meeting, the play was blown dead after 14 yards — and Ryan got a sideline penalty for 15 more yards. With the crowd booing, the Patriots kept moving and Gostkowski missed wide right from 54 yards — ending his streak of 31 straight field goals overall and 52 at home.

Line judge Gary Arthur was the one who blew the whistle.

“The line judge lost track of the football and he blew his whistle inadvertently,” NFL vice president of officiating Dean Blandino told NFL Network. “That’s a mistake and we shouldn’t have blown the whistle. So, by rule, they look at where the football was when the whistle was blown.

“They determined that Amendola had the football when the whistle was blown, so then the team with possession gets an option. They can either take the ball at that spot or they can replay the down. So New England decided to take the ball at the spot, which was more beneficial to them. And then there was a penalty on the play called against Coach Ryan, so that penalty by rule is also enforced from the spot where the whistle blew. So that’s how they came to that decision.”

Referee Gene Steratore issued a pool report on why Ryan was flagged, saying “That could be a multitude of things.”

NOTES: The Bills paid close attention to Patriots TE Rob Gronkowski, who caught just two passes on seven targets — one a big 27-yarder. … Game-time temperature was 29 degrees with a wind chill of 21. … Patriots LB Jamie Collins missed his third straight game because of illness. … With the offensive line healthier, C David Andrews, who had played every snap of the season, was replaced by Bryan Stork after a first series that saw Andrews guilty of a penalty — Andrews returning later with Stork moving to guard. … Patriots starting OTs Sebastian Vollmer and Marcus Cannon returned from injury, with Cannon called for two penalties on the first drive. … QB EJ Manuel was Buffalo’s backup with Josh Johnson inactive. … The Patriots observed a moment of silence before the game for Ezra Schwartz, the local teenager and Patriots fan killed in a terror attack on the West Bank last week.