Fixed a vital bug:logical bug!!!
See tabgen::closure()