fix issue where pre-existing filter would not apply when grouping