Tom Eaves assisted two goals and then scored the winner as Bristol Rovers beat Chesterfield.
Spireites defender Sam Togwell put Eaves's cross into his own net but Mark Randall equalised with a free-kick that Neil Etheridge should have saved.
Joe Anyinsah slid the Pirates back into the lead from another Eaves cross before debutant Brennan Dickenson levelled with a drive from 18 yards.
But Eaves was the hero after 80 minutes with a deflected shot from 20 yards.
VIEW FROM THE DRESSING ROOM
Chesterfield manager Paul Cook told BBC Radio Sheffield:
"Neutrals at the game would certainly say we deserved something from the game.
"When you lose it doesn't feel good. I'm not greatly into saying we'll take the positives out of it and we created chances. We got beat 3-2.
"We think we're a big club in this league. Big clubs don't keep losing games."