Kenny Deuchar scored at both ends as his Livingston side lost to Partick Thistle.
Paul Cairney crossed for Conrad Balatoni to sweep the ball home and put Thistle ahead on 26 minutes.
And, seven minutes later, Cairney's corner was headed into the net by the unfortunate Deuchar.
The striker atoned for his error when he pulled a goal back for Livi just before the break, neatly finishing from a a Mark Fotheringham cross.
The visitors pressed for a leveller in the second half but Robert Barr's wayward effort was the closest they came.
The result means Thistle replace Livi in fourth place in Scottish Football League Division One.
Partick: Fox, Paton, Balatoni, Archibald, Sinclair, Cairney, Rowson, Hutton, O'Donnell, Craig Dargo (Erskine 81), Elliot (Doolan 89). Subs Not Used: Scully, Stewart, Bannigan.
Goals: Balatoni 26, Deuchar 33 og.
Livingston: McNeil, MacDonald, Craig Barr, Watson, Kyle Jacobs, Fotheringham, Keaghan Jacobs, Fox, Robert Barr, McNulty, Deuchar (Russell 76). Subs Not Used: Jamieson, Sinclair, Fordyce, Russle.
Booked: Watson, McNulty.
Goals: Deuchar 45.
Ref: Alan Muir