Fix deleteMatchingPredicate method