Fixes #6: In concurrent environment, the race condition occurs.