bug fix: resume now works