Fixed concurrency problem.