fix typo in variable assignment