Fixed a bug if a package is installed but not in a remote repository.