fixes attachments