fix thread paginate