corrected the task query in kill task.