correct 'all' to 'selected' in get_selected_polygons