Fixing error with Scopes