fix $scope