Fixed the node creation for the local variable