fix table duplicates