Fix SEGV when parsing curly braces name