fixed bug with email