FIxed object reference issues with adding node objects