Chesterfield manager Paul Cook knew his team had not been at their best but their 3-1 win over Torquay kept them top of League Two.
Chris Hargreaves's team looked in control and on course for a vital win after Shamir Goodwin raced clear down the right in the 50th minute to fire an unstoppable shot into the roof of the net from 15 yards.
Chesterfield were finding it hard to break down an organised Torquay side but six minutes later Poke's attempted clearance hit Krystian Pearce in the back and Eoin Doyle ran through to equalise.
Torquay should have regained the lead after Goodwin hit a post in the 78th minute but substitute Conor Wilkinson put the rebound wide and two minutes later, Liam Cooper put Jay O'Shea in to score from the edge of the box.
O'Shea added another in stoppage time much to the delight of a relieved Cook.
"We never played well in the first half, we never got going, we were flat," he said. "Certainly we were painful for a long, long period of the game but the players deserve great credit for getting a win that didn't look like happening.
"Torquay scoring gave us a little bit of a rocket but we have got such good players who can make an impact on the game and it's going well for us at the minute and the players should take all the plaudits."
O'Shea showed the strength in depth Cook can call on with an outstanding performance.
"I have great faith in Jay O'Shea and my job as manager is to make sure I give all these lads minutes on the pitch," he said.
"Jay showed exactly what he is about, not that we doubted him or didn't know, and that's what I've said to people that we have goals in the team, we got three and we seem to score regularly.
"Torquay deserve credit for stifling us for a long time and making it difficult but in the end it was a really good win."