Fix bug in node creation and add back, popBack and moveBack