fix for MA.derivative