Fix total sum addition