fix duplicate doctype