Fix the distSum problem