My sonata has a automatic with manual shifter it's stuck in 1st gear any ideas on 2005 Hyundai Sonata

Tried reseting at battery tried cleaning switches at stick shifter when I disconnect harness to these switches a pears to shift OK but I was told it's not good to run it with this diconected

Asked by for the 2005 Hyundai Sonata