fix table of index