fix a bug

forget to close file handler after os.Open(file)