Fixes error component: now the sum is not cummulative. Fixes first spike (previous fix was overwriten).