Fixed a bug that handlePlayPause() does not work correctly.