fixed LDAP no-email bug