Added braces to an if statement.