fixed selected_provider aggregate bug