Fixed bug with refreshing the tree, no more duplicate nodes