[fix] groupBy - add correct cache index