Fix pagination for single page