fix condition-inverting typo