Fixed code glitch  resume