Make sure that the getPackageInfo is called correctly.