Fix ternary bouleto