Bad connection at pcm on 1995 Dodge Dakota

I as well have replaced every sensor under the hood and checked the wiring in the harness only to track it down to a loose plug at the PCM after it warms up a bit and i start going down some rough road. Really stinks spent about 300 on just little stuff but fingers crossed this was the real reason.

Asked by for the 1995 Dodge Dakota
Good luck, may have to secure the plug if it's not locking.