Fixed refresh button bug