fixed the email problem