attachments can not be opened correctly