fixed error with next page numbers of records