Fixed parsing of values in braces with braces inside