Oldham Athletic bowed out of the Emirates FA Cup as a Ben Whiteman double, including a last-minute controversial penalty saw Doncaster Rovers claim the win.
Peter Clarke had levelled the scores for Latics before being sent off late in the game.
In truth the home side dominated the opening 20 minutes as Latics looked like they were a team full of nerves.
A loose ball broke into the path of Alfie May who dragged a shot wide, before John Marquis saw a shot blocked by Tom Hamer.
Latics did create an opening as Christopher Missilou broke away with the ball with it eventually falling to Chris O’Grady who’s shot was straight at Marko Marosi.
Doncaster went up the other end and Daniel Iversen had to be at his very best as a corner fell to James Coppinger who’s shot was saved well by the Danish U21 International.
May then hit one straight at Iversen after a driving run before Captain Peter Clarke produced a moment of brilliance at the back.
Marquis found himself around Iversen and as his shot was creeping over the line, Clarke somehow managed to get back and clear it off the line.
Strangely enough, Latics seemed to shrug off their early nerves as they defended well for the remainder of the half.
Pete Wild’s side almost found themselves in front on the counter as the half came to a close, but as the ball fell to Johan Branger-Engone he curled one over the bar as he seemed to lose his footing.
Branger-Engone dragged a shot wide early in the second half before Kieran Sadlier forced Iversen into a fantastic diving save.
O’Grady then set up Jose Baxter from a cross as he headed wide before Branger forced a save from Marosi.
However, against the run of play the home side took the lead.
George Edmundson gave the ball away and Doncaster broke as the ball fell to Whiteman and his deflected shot beat Iversen in goal.
Missilou hit the post with a left-footed shot as Callum Lang hit the rebound wide before Latics finally grabbed a deserved goal.
Gevaro Nepomuceno’s freekick hit the Doncaster wall and the ball fell to Clarke who tapped home into an empty net to send the away fans into bedlam.
Referee Peter Bankes then pointed to the penalty spot for an apparent handball on Clarke, however how he or his assistant saw it in the goalmouth scramble remains to be seen.
Whiteman stepped up and dispatched the penalty which turned out to be enough for Doncaster.
Clarke was sent off for a second yellow for a foul on goalkeeper Marosi as Latics need to pick themselves up when they take on MK Dons on Tuesday night.
Attendance 11, 260 (3796 Away)
Marosi, Mason, Andrew, Whiteman, Marquis ©, Anderson, Kane, May, Sadlier, Coppinger, Downing
Iversen, Hamer, Clarke ©, Edmundson, Nepomuceno, Lang, Sylla, Missilou, Branger-Engone, Baxter, O’Grady