fixed canResume check