fix export in emails