Fix querying when there are multiple values for a query property.