fix race condition
0.3.2