Clear the tree visualizations properly