Quick nitpick on the index calculation