PHILADELPHIA (AP) — Carson Wentz relied on a bunch of guys off the practice squad and his go-to guy Zach Ertz to rally the Philadelphia Eagles.

After Eli Manning led the New York Giants to a 14-point lead, Wentz brought the injury-depleted Eagles back and tossed a 2-yard touchdown pass to Ertz in overtime to give Philadelphia a 23-17 win on Monday night.

The Eagles (6-7) snapped a three-game losing streak and moved into a tie with Dallas (6-7) for first place in the NFC East. Philadelphia takes the division title if it wins its final three games. The Eagles meet the Cowboys in Week 16.

Wentz drove Philadelphia to the Giants 29 with just under 10 minutes left but Greg Ward dropped what should’ve been a 29-yard TD pass on third-and-11. Jake Elliott then missed a 47-yard field goal wide left.

Wentz threw for 325 yards and a pair of TDs, including a 5-yard toss to Ertz to tie it at 17 with 1:53 left.

Manning was 15 of 30 for 203 yards. But he couldn’t prevent New York (2-11) from losing its ninth straight game, tying a franchise record set in 1976, when the team opened 0-9.

Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.