fix typo and syntax error