fix pause resume exception