A spectacular 79th minute goal from Chris Lines gave Bristol Rovers victory over Rochdale at the Memorial Stadium.
The midfielder found the top corner of the net with a perfect right-footed drive from 25 yards after latching onto a pass from substitute Byron Moore.
The visitors took a 29th-minute lead when Rovers failed to clear a low corner box and Ian Henderson poked the ball in through a crowded six-yard box, referee Chris Sarginson awarding the goal after consultation with an assistant.
The hosts hit back four minutes after half-time, Tom Nichols heading Lee Brown's left wing cross into the path of Liam Sercombe, who volleyed his 11th goal of the season.
Darrell Clarke's side then went in front in the 65th minute when Joe Partington headed home a Lines free-kick, but within seconds Henderson picked up a right wing cross in the centre of goal and fired in at the second attempt to equalise.
Rovers goalkeeper Adam Smith required lengthy treatment for a head injury in the opening minutes but was able to complete the match.