fixed double write bug
v0.1.2