bug fix in pausePlayback function