fix a bug for package