fix search showing deleted opportunities