logical fix