Fix computation of 'package' metric