fix a email send bug