Fix crash when playing and pausing simultaneously