Fixed spelling error and variable name collision.