[subset] Fix infinite loop in there are more then 32 tables.
4 files changed