fix export_mails with no exports