Fixed a bug in pkg.send