fixed references for groupBy sample