fix refresh button bug.