Fix write 1 file