fix a bug in b-table checking