filtering bug fix