Fixed refresh problem