fix typos after refactor