fix logical not typo