Your 1988 jeep grand Cherokee automatic stalls when gas pedal revs up in park Also stalls when slowing down to a stop?

I've had this problem a few times with my 1996 cherokee. The first thing which was replaced was the CV valve, and it was fixed for about 5 months, and then it started happening again about a month ago. I'm a college student on my own, and could not afford to have it fixed immediately, but I did drive the Jeep into town yesterday to have it looked at. The mechanic said the throttle sensor was broken, so he replaced it and it's been running like a champ since. I always forget how much power that 6 cylinder 4.0 high output engine has!