Trying to fix a bug in the email sending.