Fix a typo in condition