correct the MACD process