Correct braces in template-foreach