fix bug of sending email