Fix get wrong quota for task.