fixed the error with the pause button