fix bug write file