Fix logical operator