fix a bug for Package.js