 extension ViewControllerAllProfiles: NSTableViewDataSource {
     func numberOfRows(in _: NSTableView) -> Int {
         self.numberOfprofiles.stringValue = NSLocalizedString("Number of configurations:", comment: "AllProfiles") + " " +
-            String(self.configurations?.count ?? 0)
-        return self.configurations?.count ?? 0
+            String(self.allconfigurations?.allconfigurations?.count ?? 0)
+        return self.allconfigurations?.allconfigurations?.count ?? 0
     }
 }
 

    // 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] {
                let hiddenID = object.hiddenID
                let profile = object.profile ?? NSLocalizedString("Default profile", comment: "default profile")
                switch tableColumn.identifier.rawValue {

        self.initpopupbutton()
        ViewControllerReference.shared.setvcref(viewcontroller: .vcallprofiles, nsviewcontroller: self)
        self.allconfigurations = AllConfigurations()
        self.allschedules = Allschedules(includelog: false)
        self.allschedulessortedandexpanded = ScheduleSortedAndExpand(allschedules: self.allschedules)
        globalMainQueue.async { () -> Void in
