             self.info.stringValue = Infosnapshots().info(num: 0)
             return
         }
-        guard self.snapshotsloggdata!.remotecatalogstodelete!.count > 0 else {
+        guard (self.snapshotsloggdata?.remotecatalogstodelete?.count ?? -1) > 0 else {
             self.deletebutton.isEnabled = true
             self.deletesnapshots.isEnabled = true
             self.info.stringValue = Infosnapshots().info(num: 0)

            self.index = nil
            return
        }
        self.snapshotsloggdata = SnapshotsLoggData(config: self.config!, getsnapshots: true)
        self.localCatalog.stringValue = self.config!.localCatalog
        self.offsiteCatalog.stringValue = self.config!.offsiteCatalog
        self.offsiteUsername.stringValue = self.config!.offsiteUsername
        self.backupID.stringValue = self.config!.backupID
        self.info.stringValue = Infosnapshots().info(num: 0)
        self.gettinglogs.startAnimation(nil)
    }

    private func preselectcomboboxes() {

        }
    }

    func getsourcebyindex(index: Int) {
        self.hiddenID = index
        self.config = self.configurations?.getConfigurations()[self.configurations?.getIndex(index) ?? -1]
        guard self.config?.task == ViewControllerReference.shared.snapshot else {
