fixes upstreamset providers flush and destroy method