Fix for providers (don't works in distributed mode)