Chesterfield rescued their unbeaten home league record when they staged a stunning fightback to hold Crewe to a 5-5 draw.
Crewe had led 4-1 at half time and 5-3 with two minutes left but Chesterfield's pressure paid off when Craig Clay levelled in stoppage time.
Crewe went ahead in the third minute when Byron Moore swung in a cross to the back post and Luke Murphy headed in and three minutes later, Lee Bell curled a 20-yard free-kick into the top right corner.
Chesterfield were caught cold in the 13th minute when a defensive error let Moore in to score. Jack Lester headed a goal back in the 23rd minute but Crewe's three-goal cushion was restored when Shaun Miller went clear to go round goalkeeper Tommy Lee and finish.
The second half was a different story as Chesterfield pushed Crewe back and Lester headed his second from a Craig Davies cross in the 73rd minute.
Chesterfield were rocking four minutes later when Danny Whittaker drove in a penalty after Dean Morgan was tripped, but Clayton Donaldson made it five for Crewe from close range two minutes later. But another Whittaker spot-kick gave the home side hope and Clay capped an amazing game with a 25-yard drive in the third minute of stoppage time.