Goalkeeper Craig MacGillivray was sent off as Harrogate Town crashed to a second defeat in a week at Stalybridge Celtic on Tuesday.
Adam Nowakowski and Liam Hardy found the net as Town dominated the first half and led by two goals at the break.
But MacGillivray’s controversial dismissal for a last man challenge 10 minutes after half-time swung the tide into Celtic’s favour.
Defender Leigh Franks, struggling with an ankle injury, donned the gloves but he was powerless to save Sean McConville’s resultant penalty, although he later stopped a spot-kick he conceded.
Celtic’s Greg Wilkinson grabbed an equaliser on 75 minutes when his sweetly struck 35-yard shot squirmed under Frank’s body.
Seven minutes later, the home side grabbed a winner as Obi Anorogu nodded home.
Boss Simon Weaver said: “Decisions from the referee cost us.
“All I could hear was their manager giving abuse throughout the game. The referee felt the pressure and he buckled.
“In the first half it was the best we have played this season.
“The lads who came into the team made a big impact. I was delighted they grabbed their chance.
“Liam’s come back this summer an absolute animal. Him and Chris Hall up front were fantastic.”
The defeat dropped Town down five places to eighth.
Weaver’s men welcome Brackley Town to the CNG Stadium on Saturday (kick-off 3pm).