get_selected_distIDs() but fixed