Fixes a critical multicomparison error