fix(addNode): fixed use of undefined function