fixed countryClick function