fix paginate details