fix incorrect field name of pkg object

I think that name field does not exist in object pkg. It must be package
Merge pull request #514 from adrtod/patch-3

fix incorrect field name of pkg object