Fix sending attachments