fix firefox reload page bug