fix first page when more rec than items
Avoid executing query when unnecessary