fix typo with Generic class in document_tree