fix bug when filter value is 0