Did you flush the tranny and install new fluid? After so many years, the tranny may be gummed up and the valves take more pressure to move....allowing the shift to happen.
You may look.into the idle air control valve as gar as the idle. Again, lots of crud can build up over the years of not running.