Callum Hendry scored a brilliant stoppage time winner as St Johnstone came from behind to beat Motherwell 2-1.
Hendry scored his second goal of the game when he latched onto a long ball down the left channel and fired into the far corner.
Kevin van Veen had scored a brilliant solo effort in the 12th minute – his 10th goal of the season – as Motherwell opened the scoring for the first time since Boxing Day.
There seemed little danger when the Dutch striker received the ball with his back to goal but he turned his man and ran into space before firing a shot that bounced into the bottom corner from 25 yards out.
Saints equalized nine minutes later when Melker Hallberg crossed from the right and Hendry crossed his marker to head for the top corner at the near post.
The Saints striker had the last laugh with his sixth goal in 10 games since returning from a loan spell at Kilmarnock, taking the Perth side four points clear of Dundee at the bottom of the Premiership.
Motherwell have now gone 11 league games without a win but are still just one point clear of the top six.
The Saints were missing manager Callum Davidson due to coronavirus, but Shaun Rooney and Murray Davidson were back in the squad after injury while Nadir Ciftci got a recall.
Motherwell manager Graham Alexander followed the same formation – with three centre-backs and three forwards – which lasted 50 seconds against Hibernian before Bevis Mugabi was sent off. Stephen O’Donnell replaced the suspended Uganda international at the back while Jake Carroll and Connor Shields also came on.
Both goals lit up a scrappy start, but Dean Cornelius was central to some decent passing moves from Motherwell towards the end of the first half. One ended with Shields having saved a tame effort and then Joe Efford missing a volley attempt.
Both Van Veen and Dan Cleary were cautioned following an off-the-ball incident that left the Motherwell striker on the ground, clutching his head towards the end of the half.
The first half hour of the second period was a non-event. The hosts had the best of the early exchanges without ever threatening and O’Donnell shot from around 15 yards wide in Motherwell’s first attack of the half.
Stevie May and Jacob Butterfield had replaced the hosts before Motherwell fans secured the first substitution they demanded in the 77th minute.
Kaiyne Woolery replaced Carroll as Alexander moved to a 4-2-4 and the substitute hit a post two minutes later with a drilled effort from outside that took a slight deflection. Van Veen quickly saved a free kick and Liam Gordon headed in the other end.
Woolery was cautioned for diving into the box after a delayed fall after launching a promising counterattack before Hendry scored a stunning effort.
Van Veen came close to another spectacular goal but Zander Clark got up to tip the Dutchman’s free kick.