fix paginate placement