Fixed get_mass_properties function