Fix bug when sending email to multiple users.