Fix a bug in email sender.