Fix content type of attachments