fixed resume bug