fix for ncancelled_pkgs - when called in scalar context, was only returning