Fixed Bug With Duplicate Nodes

Signed-off-by: russkentish <russellkentish@gmail.com>