chore: prune dead objects when filtering