Close file fix