document type fix