Fix the "distinct" problem for multivaluedFields.