Fix to use "latest", not "installed" for pkg.