Fixed a spelling error and bug.