Fix scroll position reset in resetPage()