fix writes zeroing files