fixed a couple of syntax errors

Nothing major, just removed an extra brace and added a semicolon...