Refactor. fixed a typo.