update scheduler test for reschedule
diff --git a/scheduler/scheduler.cc b/scheduler/scheduler.cc
index 029be5c..2806075 100644
--- a/scheduler/scheduler.cc
+++ b/scheduler/scheduler.cc
@@ -124,7 +124,7 @@
 Scheduler::rescheduleTask(const TaskPtr &task)
 {
   ReadLock lock(m_mutex);
-  TaskMapIt it = m_taskMap.find(tag);
+  TaskMapIt it = m_taskMap.find(task->tag());
   if (it != m_taskMap.end())
   {
     TaskPtr task = it->second;