BALTIMORE (AP) — In a mistake-filled game for the Baltimore Ravens, the final miscue hurt the most.

Jason Myers kicked a 53-yard field goal after Jacksonville got another play on a facemask penalty with no time left, and Ravens' season of misery received another cruel jolt Sunday with a 22-20 defeat

Down 20-19 with no timeouts, the Jaguars got the ball at their 20 with 1:06 left. After moving to the Baltimore 49, Blake Bortles took the snap an instant before the clock expired and was quickly sacked by Elvis Dumervil.

But Dumervil grabbed the quarterback's facemask, and because a game can't end on a penalty by the defense, the Jaguars got one more play and the ball at the 35.

Myers, who earlier missed a 26-yard field goal try, boomed this one through the uprights.

"If you watch the tape, you see me jumping like, 'It's over!' And then, 'Sack, It's over!'" Ravens cornerback Jimmy Smith said.

For Baltimore (2-7), the season is all but done.

The Ravens' seven losses have come by a total of 32 points. They have no one to blame but themselves for this one: In addition to committing four turnovers, the Ravens were penalized nine times for 121 yards.

"We're just not the type of team that's finding ways to win right now," said Joe Flacco, who went 34 for 45 for 316 yards and three touchdowns. But he threw two interceptions and lost a fumble.

Bortles went 22 for 45 for 188 yards and two touchdowns to help the Jaguars (3-6) end a 13-game road drought that began after a win in Cleveland on Dec. 1, 2013.

Long after the final whistle, the Jaguars players were whooping and laughing in their locker room. It was a celebration nearly two years in the making, because Jacksonville had lost 13 in a row on the road since winning at Cleveland on Dec. 1, 2013.

"Unbelievable game," coach Gus Bradley said.

One of Bortles' TD throws went to Allen Hurns, who extended his franchise record for consecutive games with a touchdown catch to seven.

Baltimore trailed 19-14 in the fourth quarter before Flacco directed a 10-play, 80-yard drive that ended with a 14-yard touchdown pass to Chris Givens with 7:30 left.

The Ravens couldn't hang on, and now they're 6-2 under coach John Harbaugh coming off a bye.

"Obviously about as tough a loss as you ever going to see, you're ever going to have to deal with," Harbaugh said.

Like Baltimore, the Jaguars have experienced problems this season in close games. This one, however, was quite the exception.

"I've never seen anything like that before," Jaguars linebacker Paul Posluszny said. "That was wild, but I'm glad it ended the way it did."

Although Flacco gave the ball away three times in the third quarter, Jacksonville managed only a field goal from the miscues and entered the fourth quarter trailing 14-13.

The Jaguars were provided another turnover in the fourth quarter, and this one they turned into a touchdown. After a fumbled punt by Jeremy Ross was recovered by Nick Marshall at the Baltimore 37, Bortles connected with Allen Robinson on a 15-yard touchdown pass for a 19-14 lead with 13:01 remaining.

Flacco went 21 for 28 for 204 yards in the first half to stake the Ravens to a 14-10 lead at the break.

But Davon House twice intercepted Flacco in the opening 4 1/2 minutes of the second half. The first one set up a field goal to cut the deficit to 14-13, and the second came at the Jacksonville 6.

Flacco made it three giveaways on three possessions when he lost a fumble at the Jacksonville 41. But in this game of errors, Myers was wide left on a 26-yard field goal try.

Notes: Ravens C Jeremy Zuttah left in the fourth quarter with a shoulder injury. ... Jacksonville TEs Mercedes Lewis and Nic Jacobs both left the game with injuries. ... Baltimore fell to 13-3 at home in November under Harbaugh.

___

AP NFL website: www.pro32.ap.org and http://twitter.com/AP_NFL