Fix geoip wrapper factory function