Update incorrectly scoped variable

This commit fixes the name of a variable as it was incorrectly scoped.