fixed a small bug in the tree rooting algorithm (the new -f I option)