Fix error on pkg.name[0]
when name is empty
#201
Closed
pkg.name[0]
when name is empty
#201