removing update of nil attachments