fixed bug in _lookupNode