Fix table.py to avoid directly using bit_on function