fixed braces bug