Fix ternary in secret