fix bug with send email