04 Kia Rio Shifting Problem

,

My Rio will not shift out of 2nd gear. Sometimes when this happens I pull over put the trans into park and shut the engine off then restart and put it back into drive and it will start shifting normaly. Checked the fluid level and its ok. The car has 95,000 miles and a 1.6-4 cylinder with auto trans. I bought it used.