fix task assign bug