fix bugs in filters
fix bug in filter