fix page offset after orientation changed