small fix on grouping