To measure the number of moles of barium in a solution containing both magnesium 2+ and barium 2+ ions, a student added sodium sulfate and collected the precipitate. Then, he weighed the precipitate, and used stoichiometric conversions to estimate the number of moles of barium, and discovered that his method over-reported the actual value stated by his teacher. Which of the following plausibly explains the discrepancy?