Fix provider condition