resolve paginate issue