fixed spurious pause/resume problems