fixes of dom4j implementation