Local variable naming scope glitch