Ayr United remained two points above Scottish First Division bottom club Queen of the South after fighting back to claim a draw.
Sam Parkin headed straight at Ayr goalkeeper Kevin Cuthbert before the hosts' Mark Roberts fired wide.
The deadlock was broken with 14 minutes remaining when Queens' Scott McLaughlin steered home after his initial shot had been saved.
But Ayr substitute Michael Moffat netted following good work by Roberts five mintues from the end.
Ayr: Cuthbert, Tiffoney, Malone, John Robertson (Martyn Campbell 65), Smith, Geggan, Dodd, Tomsett, Parker, Higgins (Roberts 8), McGowan (Moffat 80). Subs Not Used: McWilliams, McKernon.
Goals: Moffat 85.
Queen of South: Robinson, Potter, Alan Reid,McKenna (Simmons 35), McGuffie, Higgins, Johnston, McLaughlin, Parkin, Reilly (Clark 56), Carmichael. Subs Not Used: Atkinson, Brighton, Holt.
Booked: Parkin, McKenna.
Goals: Simmons 76.
Ref: Kevin Clancy