fix b-table checking routine