My 1994 honda accord ex will stall unless: i unplug tps, start car, plug tps back in?

Car seems like it has a really bad misfire upon cold startup, but then smooths out after driving for a minute. At low Rpms it also acts like it has a bad misfire until I give her more gas. The car will stall out if I don't unplug throttle position sensor before starting the car. Replaced the sensor and the problem remains. It seems fuel related but I'm not a mechanic no matter how hard I try to be, anyone have suggestions? Also, the car will idle fine upon cold startup with the sensor plugged in. But when I put it in drive and take off then come to a stop it stalls out. P.s there's a popping sound that comes from the muffler when it seems to misfire

Hi well it is now a 21 year old car what do you expect new performance.

It has a rebuilt engine and it drives fine at highway speed it obviously has nothing to do with how old the car is. The problem is fixable. Post only if you have a suggestion to what the cause could be.