fixed brace bug