Fix host and IP setting in instances