Fix typo in condition