little logical fix