fix ema terms error