fix indexOf reference in virtual grid