fix typo in condition assignment