Modification for nextPage return NULL