fix insert_end_list