Fix replace of legacy package.
Fix replace of bit3 package.