Bug fix for auto-installation when some packages are missing