fixed ambiguous if/else braces.