fix throughput counting