Fixed some missing curly braces