bug fix with PackageManager