fix in doctype switch for newspaper calendar