fix stupid mistake in printing path length