fix typo and invalid char