Fixed CXForm.WriteTo