Purchased my ‘16 Turbo mid summer and after a week or so of purchasing. I got engine light with code P0507 (idle higher than expected) and this happens when my car is gear so R or D and it’ll rev high when foot is slowly braking or when stopped (rev to 2000-2500) as well as when foot is on NO pedal it’ll rev on it’s own. Only occurs in gear though. changed the TB twice, changed turbo inlet gasket (cracked), no ECU update. Went to hyundai and they couldn’t find the issue so the “ re taught” the car as well as resetting the adaptive valve. Engine code is always there but what could some possible issues? TCM? Complete tran swap?