fix task.visited