fix bug when filtering all