fix bug ldap