Fix pause/resume.