fix index typo