Fixed DTD parsing bug