-fixed misspelling of index resulting to an error