Ellis Harrison scored in stoppage-time to secure a dramatic win over Doncaster.
The striker headed home James Bolton's cross at the death, as the Blues battled to a 2-1 victory at the Keepmoat Stadium.
Gareth Evans had opened the scoring following a quick break, but Reece James looked to have rescued a point for Rovers before Harrison's intervention.