Fix update error when editing text after image