Substitute Joe Pigott struck in the third minute of stoppage time as AFC Wimbledon moved out of the League One relegation zone with a 1-0 win over Bristol Rovers.
This was a much-needed tonic for the Dons, who had lost their last four games, but they are now one point clear of the bottom four, with Oldham taking their place.
Liam Trotter lifted a good early chance over for Wimbledon after Cody McDonald had headed back Andy Barcham's cross.
In what was a first half of few chances, Liam Sercombe looked set to give Rovers - unbeaten away from home in two months - the lead, only for Deji Oshilaja to get back and make an excellent block.
Joe Partington then had a rare shot on target for Rovers, as his powerful drive from 25 yards was beaten away by Wimbledon goalkeeper George Long.
Just when the match looked to petering out to a dour draw, Pigott snatched the points at the death for the Dons, planting a downward header from Harry Forrester's cross into the net.