Fix typo in variable name

It should be pkg_type not pkg_type1.