fix clear filter logic