fix bug when the id_list object is an empty string ,the for loop will give a empty string as id value