fix typo in extractPackages