Fix uncovered indexes in findCommonIndexes function