Auto trans stumper

Had a 1982 Ram Charger do this. Replaced the neutral safety switch and it still did it. I unplugged it and it quit. Something in the wiring. I didn't have the truck long. Never figured it out. Try unplugging it, see if it quits.