GeoIP with 1,8 not working

I have installed GeoIP on 1.8.2 and its showing “?” in place of country icon. also i have made following change in

/piwik/plugins/Live/Visitor.php


 function getCountryName()
        {
                return Piwik_CountryTranslate($this->details['location_geoip_country']);
        }
        function getCityName()
        {
                return $this->details['location_geoip_city'];
        }

        function getCountryFlag()
        {
                return Piwik_getFlagFromCode($this->details['location_geoip_country']);
        }

        function getContinent()
        {
                return Piwik_ContinentTranslate($this->details['location_geoip_continent']);
        }