fix closing the file