fixing a refactor typo