Fix getNextPageUrl by adding <=