Bottom club Queen of the South moved to within two points of second-bottom Raith Rovers following a home victory over fellow First Division strugglers Ayr United.
The Doonhamers had won only one of their previous nine league games but took the lead after 14 minutes thanks to Allan Johnston's first goal since September, a low driven effort from the edge of the area.
Gus MacPherson's side doubled their lead 10 minutes later, Sam Parkin heading home his fourth goal of the season from close range.
The visitors came back into the match 12 minutes from time when Michael Moffat found the back of the net with a clinical finish.
However, Brian Reid's men were unable to find a late equaliser and are now five games without a win and only one point ahead of Rovers.
Queen of the South: Robinson, Potter, Craig Reid, Higgins, Carmichael, McKenna (McGuffie 85), Simmons, Holt, Johnston, Parkin, McLaughlin (Clark 77). Subs Not Used: Brighton, Atkinson, Reilly.
Goals: Johnston 14, Parkin 24.
Ayr: Cuthbert, Tiffoney, Martyn Campbell, Smith, John Robertson, Trouten, Tomsett, Geggan, Moffat, Parker (Dodd 55), Roberts. Subs Not Used: McWilliams, Wardlaw, Ross Robertson, Armstrong.
Goals: Moffat 78.
Ref: Charlie Richmond.