fix ternary render bug