fix table_max size off by 1