Solved by albanD in post #2 
              
              
                This has already been answered multiple times, please see this question for example: Sum of Variable not equal to sum of its data