Fix logical typo