fix attachments