Prevent overlapping labels in tree.