Corrected the mass fraction equations