fix in delete doc for doctype