Michael Symes's hat-trick helped Rochdale to a vital win over Oldham.
Symes struck first when his low drive went in off the post, while Shefki Kuqi equalised with a spectacular dipping volley from 30 yards.
Symes swept home a second from Jason Kennedy's lay-off, and got his third from the spot after he was brought down by James Tarkowski.
Reuben Reid pulled one back from the edge of the area, while Tarkowski saw red for two bookable offences.
VIEWS FROM THE DRESSING ROOM
Rochdale manager John Coleman told BBC Radio Manchester:
"I don't think you can enjoy it on the bench, you've gone through every high and low you can possibly go through.
"For the neutral it would have been magnificent, it was a game that had everything.
"Take his (Michael Symes's) goals away, I thought his performance was very good as well.
"Once he gets going he's a handful for any defence - he's clever, he's incisive, a good finisher and he showed all those attributes today."
Oldham Athletic manager Paul Dickov told BBC Radio Manchester:
"The important thing to talk about is we lost the game and that's very disappointing.
"There were a lot of very questionable decisions that we didn't get but we didn't defend well enough to win the game.
"I'm fuming inside but after four defeats I don't want to come out here and look as if I'm making excuses."