fix typo and error