Iain Flannigan converted a penalty with four minutes left as bottom club Alloa Athletic beat Raith Rovers 1-0 in the Ladbrokes Championship.
It was only Alloa's third win of the season - all of them coming away from home - and they have closed the gap on ninth-placed Livingston to four points.
Raith Rovers remain in fourth spot, two points ahead of Queen of the South.