Fix scopes.