Fixed bug in mean_by_mass()