Aberdeen dug deep to take all three points in a keenly contested encounter against Partick Thistle at Pittodrie.
Jayden Stockley’s header with 18 minutes remaining gave the Dons the lead before Ryan Christie secured the points with his first goal for the club in injury time.
The Dons should have been ahead before half-time but they could not find a way past Partick goalkeeper Tomas Cerny.
Cerny blocked a Kenny McLean shot from the edge of the box before Andy Considine fired straight at the Jags goalkeeper.
Aberdeen kept the pressure on and Ashton Taylor headed wide before Cerny was called into action again to keep out Graeme Shinnie’s 25 yard effort.
Partick stood firm, however, and they came close to making the home side pay when Ryan Edwards headed wide from inside the six yard box at the start of the second half.
Aberdeen were struggling to replicate their attacking threat of the opening 45 minutes and it took them until the 71st minute to test Cerny with the Jags goalkeeper turning Jonny Hayes’ shot round the post for a corner.
From the resulting corner, however, the goal the Dons craved finally came when substitute Jayden Stockley headed McGinn’s ball into the box past Cerny.
Adam Rooney had a chance to put the game beyond the Jags when he found himself one on one with Cerny but the Jags goalkeeper saved the Aberdeen attacker’s shot.
On-loan Celtic midfielder Ryan Christie secured the win for his side in injury time when he converted Stockley’s cross to give the Dons victory.