Fixed some typo based bugs.