bug fixed for pause/play