Fix mangled ternary var statement.