Fix null pointer on clear criteria.