fix bug in yaml_doc