Fixed a bug with emails.