Fixed indexing error due to a typo [skip ci].