Fixed access to parent scope.