$scope fix