Oldham came from behind twice to beat Notts County and record their first league victory in five matches.
Lee Hughes headed the Magpies ahead before Luca Scapuzzi levelled after dribbling through the away defence.
Neal Bishop's deflected 20-yard shot put County back in front but Filipe Morais equalised as his cross evaded everyone and went in off the far post.
Zander Diamond won it for Oldham when he finished after Jean Yves Mvoto had won a header from Morais's corner.
VIEWS FROM THE DRESSING ROOM
Oldham Athletic manager Paul Dickov told BBC Radio Manchester:
"I'm relieved, but I think it was deserved as even at half-time I felt we were the better team.
"They came out in the second half, rolled up their sleeves and got the victory, so it's a big result for us.
"We want to push up the league and I don't want anyone to underestimate the result today."
Notts County manager Martin Allen told BBC Radio Nottingham:
"We'll have a look at some different players.
"I think it might be time to introduce some of our younger players into the team.
"We can talk about some of the mistakes being made, but at the end of the day, we'll have to look at different personnel."