fix bug on struct task_t