Adam Rooney’s header maintained Aberdeen’s winning start to the Scottish Premiership season at the expense of winless Partick Thistle.
Chris Erskine and Kris Doolan put Thistle ahead after Ryan Christie’s opener, but Kenny McLean levelled from the penalty spot.
Scott Wright, with a fine curling effort, then Niall Keown both netted.
But substitute Rooney nodded home Christie’s cross to send the Dons top of the league.
Keown was shown a second yellow card in stoppage time to compound Thistle’s misery.
The Dons have now won all four of their opening league fixtures, and sit at the Premiership summit with 12 points from 12, while the Jags are still seeking their first points of the season.