Fixing bug in MA strat