     }
     
     public func activateGestures(_ urband: CBPeripheral) {
-        let fa01 = urband.services![1].characteristics![0]
-        urband.writeValue(Data(bytes: [0x00]), for: fa01, type: .withResponse)
+        if let cfa01 = urband.services?[1].characteristics?[0] {
+            urband.writeValue(Data(bytes: [0x00]), for: cfa01, type: .withResponse)
+        }
+        else {
+            debugPrint("There are not discover characteristics in urband \(urband.identifier.uuidString)")
+        }
     }
     
     public func deactivateGestures(_ urband: CBPeripheral) {

    }
    
    public func centralManager(_ central: CBCentralManager, didConnect peripheral: CBPeripheral) {
        peripheral.delegate = self
        
        if let _ = peripheral.services {
            UserDefaults.standard.set(peripheral.identifier.uuidString, forKey: lastConnectedUrband)
            
            connectedUrband = peripheral
            urbandDelegate?.urbandReady(peripheral)
        }
        else {

    }
    
    public func connect(_ urband: CBPeripheral) {
        centralManager.connect(urband, options: nil)
    }
    
