Fix crash when getting country names.