Bug with document type