Fix a major bug in the DFS calculation. Thanks for Christopher Lamb for pointing...