Fix broken settings and incorrectly placed braces