fix page fresh on device/simulator.