Callum Paterson turned in Aaron Nemane’s low cross and then Rushan Hepburn-Murphy fired in from distance to put the hosts in a commanding position at half-time.
But the Spireites fought back in the second-half when debutant Sam Curtis headed in Liam Mandeville’s free-kick on 67 minutes and then substitute Will Grigg headed home Mandeville’s corner in the 94th minute.
The Spireites, who climbed to seventh, announced three new loan signings in Curtis, Sil Swinkels and Sammy Braybrooke before kick-off and they all started.
Here are our player ratings from the game...

5. Adam Lewis 5
Booked early doors for tripping the speedy Nemane and he didn't get close enough to the winger who was allowed too space to put the cross in for the opener. Lucky to get away with one when he wanted too much time on the ball in his own box just before half-time. End product with his crossing was missing, too. Off at the break. Photo: Tina Jenner

6. Ryan Stirk 6
Forced off with a glute problem against Oldham but recovered in time to start here. Made the game look so easy as he popped passes off and tidied up neatly in front of the back four. But he could have done more to stop Hepburn-Murphy escaping him and firing in from distance. Photo: Tina Jenner

7. Sammy Braybrooke 7
The third of three new signings to be chucked straight in. He's on loan from Leicester City until the end of the season. Has impressed on loan at Newport County this campaign. Showed glimpses of what he can offer but it was also clear to see he was still getting to know his team-mates. Grew into it and started to dictate attacks in the second-half Photo: Tina Jenner

8. Liam Mandeville 7
Had the game's first chance but he fired over in the first two minutes. Battled and ran and got two assists. His free-kick was headed in by Curtis and then his corner was nodded home by Grigg. A monstrous effort over the Christmas and new year period from him overall. Photo: Tina Jenner

