Hello, Im stuck on a problem and its been bugging me the last week. My car is an 87 supra 7mge a340e (auto). I just did a new head gasket and after I put it all back together I went to start it and it came back with code 52 and 51. I know 52 is the KS and 51 is the ECU has no "IDL", "NSW" or "A/C" during diagnostics. The car starts and idles fine, but when it revs it stumbles slightly, revs up fine, returns and dips to 800 rpm then returns to 1000-1100 rpm. Keep in mind that I never had these codes before the car was taken apart, nor these problems. So I tried to fix code 52 with a rewire and a new sensor and it still comes back with a fault code (that was expensive). I also tried to clean the terminals at the tps and inspect all the wires going to the tps for code 51 and have had no luck with that either. Im aware of all the threads on the forums about both codes but none have given me a solution to this problem. My question is is there something that can trigger both codes at the same time? And, is there something i could've missed when putting everything back together? Thanks for any replys!