Fixes issue #328

Fixes reproducible error, where can not add attachment after a property has been updated.