fixed the imcomplete_tasks bug