Switch out incorrect scoping