fixing pause/unpause