Fixed positional argument bug in PathDetection that caused crashing.