fixed error at sending email