fix refresh counter