Fix host not correctly being set.