fix paginate issue