Teenager Jude Winchester completed a late turnaround with his first goal as Kilmarnock secured seventh place in the Clydesdale Bank Scottish Premier League with a 2-1 win at Dunfermline.
Relegated Dunfermline looked like doubling their tally of home wins after repelling some early second-half pressure after Paul Willis had given them a 20th-minute lead.
But Liam Kelly fired an equaliser with four minutes left and 19-year-old substitute Winchester capped his second appearance with a cool finish in the 89th minute
Goals from Greg Tansey and Jonny Hayes helped Inverness beat Scottish Cup finalists Hibs 2-0 in the Highlands.
Tansey broke the deadlock against the much-changed visitors when he curled home a 25-yard free-kick just after the hour.
Sought-after winger Hayes sealed the victory 10 minutes later with a penalty after Matt Doherty handled in the area.
Aberdeen striker Darren Mackie missed out on the chance to end his Dons' career with a goal as his final game for the club ended with a 0-0 draw at home to St Mirren.
Mackie was well involved as the side he has served so well were involved in an entertaining encounter with St Mirren.
Steven Thompson had St Mirren's best chances and forced a late save out of Jamie Langfield who blocked his efforts with his legs.