fixed bug of double filtering