fix bug with add extra code num