fix bad condition in prv_find_object()