Fixes #740 Update Attachment Makes Orphaned Attachment