Fixed outer variables.
Self-review.