Fix host extraction.