Corrected curly brackets count