Partick Thistle hit back from behind to beat 10-man Ayr 2-1 at Firhill and climb level on points with leaders St Johnstone at the top of the table.
Tsoanelo Letsosa fired Partick level early in the second half after Ethan Walker had given Ayr the lead just before the break and Ben Stanway struck a 50th-minute winner.
The visitors, who slipped to their first league defeat on the road this season, were reduced to 10 men in the 72nd minute after Walker received his second yellow card.
Thistle have lost just one of their first 11 league games this term and extended their unbeaten home run to six matches.
Dunfermline moved up one place to fifth after thrashing Airdrieonians 4-0 at the Albert Bartlett Stadium, with the Tod brothers both on target.
Andrew Tod headed the visitors into the lea