concurrency bug fixed