Fix length bug for tables in tablelookup osc