fix not append modle, the file write bug