fix unused index invocation