Fix a bug regarding the weight of a Package created from a Mass object