remove error when attachments array is null