Fix the pause button behavior to correctly pause.