getRepeatIndexes now returns a valid HashMap