Scope case bug