Added fix for the packageType population
Corrected naming convention