Fix wrong page being displayed when switching to presentation mode