850 stalling out on 1995 Volvo 850

Mechanic ran codes said it was mass air flow meter/sensor. Changed it . Ran well for 1 mile then cut completly off. able to restart and limp home. What else could it be/ confused. Appreciate any help!

Asked by for the 1995 Volvo 850
This needs a hands on diagnosis by a trained professional. These problems are not easily solved, so I suggest having someone look at this for you.