Clearning up errors with scope.