Reverted stupid bug in distancetree