fix scope.update