bug fixed task_type