Fix bug in node output