Attachment export bug fixed