Fixed a bug in jpkg-add