1999 Jeep grand cherokee

Transmission does not want to shift from 2nd to 3rd. It will finally shift after a few seconds if I let off the gas pedal at about 40 mph. Then it will shift into O/D okay. No engine light, no error codes.