Fixing concurrency bug issue.