Fix 'is there a next page' check.