ES: fix indexing