Fix uniqueValues for virtual field