fix require-package bug