Fix write statistics