task: fix task order bug