Fix some errors when you add data to the tree.