Fixed undefined virtualIndex breaking z translation.