fixed bug where nodes are duplicated on refresh