fix a typo which produces an unknown local variable error.