 			return
 		}
 		
-		guard let displayNameProvider = selectedObjects?[0] as? DisplayNameProvider else {
+		guard selectedObjects?[0] is DisplayNameProvider && selectedObjects?[0] is UnreadCountProvider else {
 			currentFeedOrFolder = nil
 			return
 		}
 		
-		currentFeedOrFolder = displayNameProvider
+		currentFeedOrFolder = selectedObjects?[0]
 		
 	}
 	


	private func updateWindowTitleIfNecessary(_ object: Any?) {
		
		if let folder = currentFeedOrFolder as? Folder, let countNote = object as? Folder {
			if folder == countNote {
				updateWindowTitle()
				return
			}
		}
		
		if let feed = currentFeedOrFolder as? Feed, let countNote = object as? Feed {
			if feed == countNote {
				updateWindowTitle()
			}
		}
		

	private let windowAutosaveName = NSWindow.FrameAutosaveName(rawValue: "MainWindow")
	static var didPositionWindowOnFirstRun = false

	private var currentFeedOrFolder: AnyObject? = nil {
		didSet {
			updateWindowTitle()
		}
