Revert "Use the right scope for variable"
This reverts commit 853f21e9c398c48fa0a692b9dc21890cd757d9f1.
Ugh sorry