Inverness Caledonian Thistle came from behind to beat St Mirren in the Scottish Premier League.
Richie Foran missed an open goal for the home side before Marc McAusland's header put St Mirren in front.
Foran atoned for his earlier miss by setting up Andrew Shinnie to level before the interval.
Gregory Tade was also guilty of missing some gilt-edged chances but made amends by claiming Inverness's winner from close range on 78 minutes.
The victory is the Highlanders' second of the season, but they remain bottom of the table, a point behind Dunfermline, who have played a game less.
St Mirren, who were out of sorts for long spells, remain sixth.
The hosts could have been in front inside the first minute but Foran shot wide after Shinnie had dispossessed Lee Mair and crossed into the six-yard box.
David Davis tested Craig Samson's handling in the slippy conditions but the St Mirren goalkeeper was equal to the midfielder's effort.
Jeroen Tesselaar deflected a Foran header wide as Terry Butcher's side continued to press.
Against the run of play, the Buddies claimed the lead as Gary Teale's corner was headed home by the unmarked McAusland.
Tade surged past Mair to latch on to Foran's pass but the striker's shot hit the side-netting.
But Inverness did level when Davis's cross was headed back across goal by Foran to Shinnie, who powered home a shot from 12 yards.
Paul McGowan's shot was blocked by Inverness keeper Ryan Esson near the end of the first half.
Shinnie threatened again with an effort from 22 yards that deflected off a St Mirren defender and onto the post just after the break.
Tade had squandered two more one-on-one chances when put through on Samson's goal but the forward's luck turned 12 minutes from the end.
Shinnie's shot came back off the post and bounced back off the well-placed Tade and into the net.
St Mirren netted again in stoppage time but McGowan's effort was ruled offside as the hosts held on for a fully deserved three points.