fix typo and coding style