fixed the slow reindexing after generation run