Fix NPE for next page loading