Try disconnecting the shift cable, straightening it out, and cleaning/lubricating the inner cable.
Try routing the cable slightly differently to avoid its "memorized" position and forcing it to operate in a different position. Minimize any sharp bends in the routing.