added fix to return the doctype