fix bug in package.js