#Fix wrong behaviour on smoothing

When smoothing window size is set to zero rapidly 'old' values distort
the average calculation