fix bug after add idToSub and subToID