[new index structure] Bugfix in IndexFactory.