fix issue with document type not being interpreted properly