fix paginator creation