Bug test ternary