correct bug in createNode