Fix warning on pagination