fix curly brackets