Fixed concurrency so that every thread should finish