close the file stream only fix