modify statistics_task_spec of take tasks number of different state