Fixed typos that occurred during refactor.