diff --git a/pattern.py b/pattern.py index fc0ef60..ee88a01 100644 --- a/pattern.py +++ b/pattern.py @@ -57,7 +57,7 @@ def _apply(target, arg, func): def apply(targets, args, func): for target in range(len(targets)): if this.values[targets[target]['channel']] != None: - if target <= len(args): + if target < len(args): this.values[targets[target]['channel']] = _apply( this.values[targets[target]['channel']], args[target], func) else: