remove doctype from sessions