Ryan Hardie scored a stoppage-time winner as Livingston beat Dundee United 2-1 at the Tony Macaroni Arena on Friday night.
Scott Robinson gave Livi a first-half lead and Hardie had the final say after Matty Smith had equalised for the visitors in 74 minutes.
The victory moves David Hopkin's men - who beat leaders St Mirren 4-1 last weekend - six points clear of Csaba Laszlo's side in second place.