Fixed logic for filter change