Fix bugs: filter counting.