fix headers for attachments