fix check for usearch errors