Avoid errors when applying scope.