Some curly braces missed up