Fixing mass_summation error check