fixed paused/play state switching