fixed bug in email