fix: var scope