fix refresh problem