fix typo in for statement