The San Francisco 49ers are no longer the most penalized team in the NFL. Not after only getting flagged twice in Sunday’s 22-17 victory over the Kansas City Chiefs.

So how did the 49ers, for at least one week, solve their penalty woes?

“Good emphasis by our players,” Niners coach Jim Harbaugh said in his weekly Monday media conference. “They’ve taken it upon themselves to play the style of football that is good. They want to play good football. They know that that was hurting us.

“You could see where some of those penalties, the pre-snap penalties, on both sides of the ball, but (mostly) defensive pre-snap penalties and post-snap penalties were costing us.”

Sunday, the Niners’ two penalties were a neutral-zone infraction on linebacker Ahmad Brooks and a false start on left guard Mike Iupati.

The Niners’ 48 penalties break down as such: offensive holding (9), illegal contact (5), unnecesarry roughness (5), false start (5), illegal use of hands (5), delay of game (4), offensive pass interference (3), roughing the passer (2), face mask (2), neutral zone infraction (2), defensive holding (1), illegal formation (1), defensive pass interference (1), clipping (1), offside on free kick (1), unsportsmanlike conduct (1).

“Players have taken that upon themselves to get that corrected,” Harbaugh said.

The 49ers still rank second in penalties, behind the Pittsburgh Steelers’ 51 penalties, and their 393 penalty yards are third, behind the New England Patriots (466) and Steelers (437).