fix file not close bug

fix file not close bug