parentheses mismatch in amber template