Fix open bug.
Fix paste code to update object (bug fix in AvalonEdit)