fix issue : self.doc_managers used as a function