Finally fixed the curly brackets