Fix typo in index directive

Switched from idx to index so the indexes will work.