Corrected update of scope.