task_list_init bug fix