Fix concurrency issue.