Paginator was returning wrong pages