fixed errors with filtering by group