Fix place whew app.HostName is set.