Fix ternary node parenthesis