fix a resume bug