Oldham boss Paul Dickov expressed his relief after a run of three successive defeats was ended with a 2-1 win at Hartlepool on Tuesday.
Antony Sweeney cancelled out Jose Baxter's opener, but the visitors were handed a stoppage-time lifeline when Jack Baldwin handled inside the area.
Baxter's penalty was saved by Scott Flinders, but the Latics top goalscorer knocked in the rebound to the delight of his manager.
After the victory at Victoria Park in League One, Dickov said: "We've lost the last three games and we needed that one.
"I wrote up in the board before the game three words: workrate, attitude and desire and we needed three points, but I shouldn't have to write that.
"I'm happy with the application but we know we can play better than that. We pressed the ball as a team and that might have been fortuitous but it fell for us."