fixing index typo