Commit in the way to put dom write on the right part of the file