Fix error on page selection