solve problem with tableId and tableIndex