Fix provider discovery to wait for one provider