final fix for resume bug