Fixing a bug with getting instance ips