fix ldap no email error