Fix CompoundPredicate errors.