Fix for TypeError: list indices must be integers, not str in Indexer API code