fix typo in assignment instead of equality