fix a bug of send mail