fixed duplicate nodes crash