Fix pause/unpause being broken.