Logic fix.