Country Undefined

I for some reason just noticed under statistics where we can see ips and what country they all say undefined and I do not know how long its been like this. I checked our other site and they are all there with flags but not this current one so what is the fix for this