Refactoring to correct typo