fix to attachments