free old selected_if_name when selection changes