concurrency bug fix