fix indexing

[merge]