fixed page refresh problem