Fix issue on sending email