Fix a problem in the package() function.