It's probably your vacuum modulator. Usually when it goes bad you will want to replace it with a new one. Its the unit that sits on top of your tranny with a thin long vaccum hose that goes to the intake manifold. It regulates the shift solenoids, so when it isn't working properly that's when you start getting irregular shifting issues. Remember the mechanics behind shifting auto trannys, unlike manuals, are nothing but vacuum and electronics.