Fixed array creation in AddNode