Fix incorrectly scoped variable