Fixed problem where get_selected_qres checked rids instead