fix doctype bug