Fixed an error in PackageConstructor