self.doc missing