Fixing smoothedSum bug...