       $scope.entries = data["entries"]
       feed.unread_entries = data["unread_entries"]
     .error (data,status)->
-      unset_current_feed()
+      currentFeedSvc.unset()
       $scope.loading_entries = false
       if status == 404
         $rootScope.error_no_entries = true

  #--------------------------------------------

  $scope.move_to_folder = (folder)->
    old_folder_id = $rootScope.current_feed.folder_id
    $rootScope.current_feed.folder_id = folder.id
    feed_removed_from_folder $rootScope.current_feed, old_folder_id
    folder.unread_entries += $rootScope.current_feed.unread_entries

    $http.put("/folders/#{folder.id}.json", folder: {feed_id: $rootScope.current_feed.id})
    .error ->
      # Show alert
      $rootScope.error_managing_folders = true

  #--------------------------------------------

  $scope.unread_entry = ->
    if openEntrySvc.get().read
      change_entries_state [openEntrySvc.get()], false


  #--------------------------------------------
