fix refresh time bug