Substitute Reece Mitchell struck in the third minute of time added on as Chesterfield bolstered their Sky Bet League One survival hopes with a 1-0 victory at fellow strugglers Swindon.
Mitchell was introduced in the final 10 minutes, replacing the ineffective Sylvan Ebanks-Blake, and the change proved an inspired one as he netted his first goal of the season.
The Spireites' first win in eight league matches means they are now eight points adrift of 20th-placed Oldham, while Swindon remain three adrift of safety.
The Robins had the first chance of the game in the 14th minute when Brandon Ormonde-Ottewill picked out Luke Norris at the far post but the striker stabbed his effort wide.
Swindon then missed another sitter five minutes later after Anton Rodgers' free-kick found an unmarked Nathan Thompson but he sent his shot over the bar.
Trending
- Gerrard not surprised by Lennon's Celtic exit
- Are Newcastle sleepwalking towards relegation?
- Ole: I keep in touch with Haaland
- Woods has surgery for 'significant leg injuries' in car crash
- AJ warns Fury amid talks: I'm the boss
- Bayern's Musiala chooses Germany over England
- Struijk: Bielsa's like nothing I've ever seen before
- Jota back in training, Van Dijk steps up rehab
- Man Utd vs West Ham among extra PL games live on Sky
- Rise of Raphinha, the entertainer
Chesterfield had to wait until the stroke of half-time to register an attempt at goal when Liam Grimshaw tried his luck from range but he failed to hit the target.
Jon Obika then went close for the Robins in the 63rd minute when he was gifted a free header in the area but he could not direct it on target.
Chesterfield then won it through Mitchell after he latched onto Ched Evans' cross to give his side a vital victory with the last kick of the match.