Fixed return type of indexNamesOnTable: