small fix on email sending