Bug fixes in packages