Fix bug in sum in CompareVideo