Logic fix for multiquality issues.