Corrected if...else.

Put proper braces around the "if" and "else" statements.