Fixes a bug with PackageControlController.