With the lever in park, get under there and loosen the adjuster on the linkage rod.
Usually it will center itself when you loosen the adjuster, but if it doesn't just kind of wiggle the lever of the trans and center it in park, and then tighten the adjuster back down and try it.
That should do it.
If it works in neutral it's probably just slightly off.