WorldMap panel wrong values for countries

Hi,
I am using elastic search and input this kind of JSON files:
{“category”:“RegDomain”, “RegDomain_codes”:[{“country_code”:“PR”, “count”:10,“time”:1583439123},{“country_code”:“HK”, “count”:67,“time”:1583439123},{“country_code”:“PT”, “count”:129,“time”:1583439123},{“country_code”:“PY”, “count”:12,“time”:1583439123},{“country_code”:“HR”, “count”:29,“time”:1583439123},{“country_code”:“HU”, “count”:66,“time”:1583439123},{“country_code”:“QA”, “count”:1,“time”:1583439123},{“country_code”:“TR”, “count”:116,“time”:1583439123},{“country_code”:“LK”, “count”:8,“time”:1583439123},{“country_code”:“TT”, “count”:1,“time”:1583439123},{“country_code”:“PL”, “count”:41,“time”:1583439123}],“time”:1583439123}

Then I create a WorldMap panel on my dashboard.
Metric is set to average of RegDomain_codes.count
Group By RegDomain_codes.country_code

On the map, I see the same value for all the countries, which is the average of the sum of all values instead of the value per country.

Any idea?