fix bug with braces