fixed spelling error and exit error