diff --git a/src/handlebars-objc/helpers/HBBuiltinHelpersRegistry.m b/src/handlebars-objc/helpers/HBBuiltinHelpersRegistry.m index 10ad6fa..dd176e3 100644 --- a/src/handlebars-objc/helpers/HBBuiltinHelpersRegistry.m +++ b/src/handlebars-objc/helpers/HBBuiltinHelpersRegistry.m @@ -165,7 +165,7 @@ + (void) registerEachHelper NSMutableString* result = [NSMutableString string]; for (id key in dictionaryLike) { dictionaryData[@"key"] = key; - id statementEvaluation = callingInfo.statements(dictionaryLike[key], dictionaryData); + id statementEvaluation = callingInfo.statements(expression[key], dictionaryData); if (statementEvaluation) [result appendString:statementEvaluation]; } [dictionaryData release];