fix task routing bug