Fixing missing closing brace error