bug fix for suspending