fix coded id generate error