Raith Rovers defeated Queen of the South 3-2 in a Championship game at Stark's Park on Tuesday night.
Early goals from Joe Cardle and Paul Watson had Rovers in command but a Mark Durnan double hauled the visitors level.
John Baird grabbed the winner with nine minutes left as Grant Murray's men held on despite a late red card for Reece Donaldson.
The Kirkcaldy club climb above Alloa and into seventh in the table while Queens stay fourth, ahead of Dumbarton on goal difference.