fix curly braces