fixed first time write bug