fix providers code