Crewe Alex were knocked out of the Carabao Cup after going down 2-1 at home to Championship side Bolton.
Chris Porter headed the Alex in front three minutes from half time with his third goal in two games.
The visitors hit back twenty minutes through Adam Armstrong.
Derik Osede then netted the winner on 82 minutes.
Crewe return to league action on Saturday when they entertain Newport at the Alexandra Stadium.