fix aggregation filtering