FIX: ternary simplification

ooooops!