fixed a bug with non-string index accesses