fix issue : self.doc_managers is a list but it is used as a function