fixed tiny bug in filter