fix a bug in subpath throughput calculation