refresh button bug fix