fixes freeze/resume