Indentation fix in index()