fix node type test