FIX: ternary op order

oops..