Fixed a small bug in the DFS tree printing.