fix NPE on page selection