     }
 
     func locationManager(_ manager: CLLocationManager, monitoringDidFailFor region: CLRegion?, withError error: Error) {
-        self.delegate?.positionLocationManager(self, didFailWithError: error)
+        delegate?.positionLocationManager(self, didFailWithError: error)
     }
 
 }

            case .allowedAlways,
                 .allowedWhenInUse:
                if self.isUpdatingLocation == true {
                    self._locationManager.stopUpdatingLocation()
                    self._locationManager.stopMonitoringVisits()
                    self.isUpdatingLocation = false
                    self.updateLocationManagerStateIfNeeded()
                }
                fallthrough
            default:

            switch status {
            case .denied, .restricted:
                self.completeLocationRequests(withError: PositionErrorType.restricted)
            default: break
            }
            DispatchQueue.main.async {
                self.delegate?.positionLocationManager(self, didChangeLocationAuthorizationStatus: self.locationServicesStatus)
