fixed small bug when in case no current_provider is set