to fix bug in using the wrong value of concurrency