Add $scope.$apply to sync data