fix reload page bug