bug fix for pause button