Fixed a bug while installing packages.