Better filtering of rare nodes