Fixed get doctype handler