fixed bug in ldap_filter