bug fix braces