fixed issue when ldap users have no preferences