St Mirren suffered a sickening late leveller as Livingston dramatically rescued a point at the death.
After a dismal first half, Saints star Jamie McGrath looked to have gift-wrapped three points for birthday boy Jim Goodwin with a stunning long range strike worthy of winning any game.
But Livi defender Nicky Devlin had other ideas, lashing home an excellent late equaliser with just two minutes left on the clock to secure a share of the spoils for the Lions.
The draw means that while St Mirren are winless in five, they still jumped up into the top six ahead of a difficult trip to Tynecastle to take on Hearts next weekend.
Goodwin made just one change from the Buddies' goalless draw with St Johnstone before the international break, with Eamonn Brophy replacing Curtis Main up front.
Saints midfielder Ryan Flynn's superb first time pass split the Livingston defence and almost put Brophy in on goal within just two minutes. Max Stryjek was off his line quickly to gather.
The Lions created their first chance when Andrew Shinnie's free-kick fell to skipper Nicky Devlin at the back post. His meek close-range effort was easily collected by Jak Alnwick.
David Martindale's team started the first half on the front foot, going close to opening the scoring again when Devlin turned provider to swing a dangerous ball in to Cristian Montano at the front post. His header flashed just wide of the post when he really should have hit the target.
Flynn was impressing in the Paisley sunshine. He fed Brophy down the line with a smart pass, with the striker cutting inside but eventually finding a way through to goal blocked well by the retreating Livi defence.
Saints were patiently probing to try and find a way to pierce the stubborn West Lothian side. They almost fluked their way to goal when a loose ball ricocheted straight to Richard Tait on the edge of the box.
He pulled it back to Alan Power who fired wastefully over the bar from a promising position.
St Mirren were forced into an early change on the half hour mark when Conor McCarthy went down injured after a fairly innocuous 50-50 challenge. He was replaced by Charles Dunne in the back three.
Despite the international break the hosts looked sluggish, struggling to maintain much possession or create many clear cut chances.
Livi looked the likelier to break the deadlock in the first half, with Odin Bailey cleverly cutting inside his marker before unleashing a low strike from the edge of the box that Alnwick did well to beat away.
Saints returned from the half-time break unchanged, having likely received an earful from Goodwin after an underwhelming collective first half performance.
Brophy spurned a chance from a free-kick in an excellent position, blazing into the wall, before Tait's teasing cross was knocked behind for a corner by Devlin as Saints started the second half with a little more urgency.
Joe Shaughnessy was first into the referee's book after pulling down Montano as he looked to break.
Livingston spurned another excellent chance to take the lead on the hour mark when Bailey's free kick found Montano in the edge of the six-yard box. His header drew a superb reflex save from Alnwick who kept the scores level.
Goodwin looked to his bench to breathe some life into his forward line, with the ineffective Connor Ronan replaced by striker Kristian Dennis as the Buddies moved to two up front.
McGrath blazed wide with a dipping volley from distance as the hosts tried to trouble Livi keeper Stryjek, up until the middle of the second half a virtual spectator.
It turned out McGrath was just finding his range, as a few minutes later the Ireland international produced a moment of magic to open the scoring.
While calls for a foul on Tait fell on deaf ears, the 25-year-old spotted Stryjek off his line and curled a sensational finish into the top corner to finally break the deadlock.
The superb finish lifted the gloom that had permeated the SMiSA Stadium, with the playmaker trying his luck again from the edge of the box with Stryjek this time able to hold onto the effort.
Dunne blazed an ambitious volley attempt well over the bar as the Buddies looked to double their lead and put the game to bed.
Dunne did brilliantly to clear a dangerous ball in behind with Livi winger Alan Forrest lying in wait to pounce.
Curtis Main replaced Brophy up front as St Mirren looked to see out the last ten minutes, with the striker lashing wide from a difficult angle shortly after entering the field.
Fellow substitute Dennis also tried his luck from distance, drawing a comfortable save from Stryjek late on.
There was still a sting in the tail to come from Livingston and it struck with just two minutes left on the clock.
After some tidy play on the left wing the ball was cut back to Forrest, who was denied brilliantly by Alnwick from close range.
The ricochet fell perfectly for Devlin, who arrowed a sensational low drive into the bottom corner to level in dramatic fashion.
Shaughnessy looked to have grabbed a late winner deep into injury-time but his shot was blocked away for a corner, with St Mirren adamant they should have had a penalty with the last kick of the game after Scott Tanser's resulting set piece appeared to be handled in the box.