[fix]get_selected_ids not defined