Fix display of selected page on load.