Removed dangling use of scopes