Fix filter guard condition