Fix bug with send email