fix memleak on IndexedTable