Fix extractTasks