Fix the hostId.