Fixed concurrent problem.