Correct extraneous use of $index