fix crash bug caused by task list