fix bug in scope.get