fixed bug on email send