resume bug fix