Revert document type