fix bug count_filter