Fix invalid key used in hostname