Duplicate nodes issue