Fixed typo in refactoring