Fix problem with the error of calculation in the momentum moving average