St. Louis Rams Johnny Hekker (6) congratulates kicker Gerg Zuerlein for making his game winning 54-yard field goal. UPI/Bill Greenblatt

Greg Zuerlein kicked a 54-yard field goal with 26 seconds left in overtime to give the Rams a 16-13 win over the San Francisco 49ers on Sunday, avoiding a second tie in three weeks between the teams. The rookie’s winning kick on fourth-and-inches from the 36 came after he sent the game into overtime with a 53-yard field goal as time expired in regulation.

Zuerlein is 7 for 11 from 50 yards and beyond. Before the 53-yarder at the end of regulation, he had missed four of his previous seven attempts including a 58-yarder near the end of the half.

The Rams (5-6-1) scored twice in the final 3:04 of regulation, getting their lone touchdown when rookie Janoris Jenkins returned an errant pitchout by Colin Kaepernick 2 yards for his third defensive score in two weeks. They’ve won two straight after an 0-4-1 skid.