fix Writable.xdocument