fix moving average x value