fixed isNode recognition