2004 Hyundai Sonata Automatic Transmission Shifting Problem

I have an 04 Hyundai sonata it’s an automatic v6. I had a problem with the transmission shifting hard. when I lift my foot off the gas.it would shift hard into gears up and down. So hard that you can actually feel them. but it’s through an O2 sensor code and a throttle positioning sensor code. and I change the tranny fluid because it needed to be changed. come to find out my problem with with it was the hose from the throttle body to the air filter box had a slice in it. well I used some electrical tape and pushed it together to close the slice and electrical taped it up for now. and after that no problems out of it.