removed a warning and close/open files of TreeK

No match.