fix bug in hostLookUp