     // TableView delegates
     func tableView(_: NSTableView, objectValueFor tableColumn: NSTableColumn?, row: Int) -> Any? {
         if let tableColumn = tableColumn {
-            if row > (self.configurations?.count ?? 0) - 1 { return nil }
-            if let object = self.configurations?[row] {
+            if row > (self.allconfigurations?.allconfigurations?.count ?? 0) - 1 { return nil }
+            if let object = self.allconfigurations?.allconfigurations?[row] {
                 let hiddenID = object.hiddenID
                 let profile = object.profile ?? NSLocalizedString("Default profile", comment: "default profile")
                 switch tableColumn.identifier.rawValue {

        }
        switch self.column {
        case 0:
            self.configurations = allconfigurations?.allconfigurations?.sorted(by: \.profile!, using: comp)
        case 3:
            self.configurations = allconfigurations?.allconfigurations?.sorted(by: \.task, using: comp)
        case 4:
            self.configurations = allconfigurations?.allconfigurations?.sorted(by: \.localCatalog, using: comp)
        case 5:
            self.configurations = allconfigurations?.allconfigurations?.sorted(by: \.offsiteCatalog, using: comp)
        case 6:
            self.configurations = allconfigurations?.allconfigurations?.sorted(by: \.offsiteServer, using: comp)
        default:
            return
        }

extension ViewControllerAllProfiles: NSSearchFieldDelegate {
    func controlTextDidChange(_: Notification) {
        self.delayWithSeconds(0.25) {
            if self.search.stringValue.isEmpty {
                globalMainQueue.async { () -> Void in
                    self.allconfigurations?.allconfigurations = AllConfigurations().allconfigurations
                    self.mainTableView.reloadData()
                }
            } else {
                globalMainQueue.async { () -> Void in
                    self.allconfigurations?.filter(search: self.search.stringValue)
                    self.mainTableView.reloadData()
                }
            }
        }
    }

    func searchFieldDidEndSearching(_: NSSearchField) {
        globalMainQueue.async { () -> Void in
            self.allconfigurations?.allconfigurations = AllConfigurations().allconfigurations
            self.mainTableView.reloadData()
        }
    }
