Fix bugs on LDAP fields