fix issues with ip2location script