fixed crashes caused by geofences