fixed flags max_list bug for ds_select_*
fixed flags max_list bug for ds_select_*