fix bug when no email is set