Fixes broken ternary