InvokeIndirect: fix indexing bug