Fixing compile error with pagination.