fix geofence_boundary check logic