fixed issues reg package.