fixed an ldap bug