fix providers creation