fix typo after refactoring