It seems the sum calculation has a bug: 