fixed refresh button bug