High idle and CHECK ENGINE SOON

Hello I have recently had a strange problem with my Pontiac Grand Am (1992, 3.3L V6): After switching on (whether cold or warm) I have an idle of 2000U/min, after a few times pressing the accelerator pedal he has the normal idle, but then goes again to a about 300U/min too high idle. The flashing of the error code pointed to the throttle valve sensor as culprit. But I have just replaced, no improvement. If I during the operation the plug from the se nsor pulls, the engine swallows short. Wiring should therefore be OK. Could this still be due to the crankshaft ventilation? If I remove the hose there I already have a light vacuum (tested with my finger). However, is for mine rather bad, but have no experience values which is normal… Does any of you still have some possible sources of error in mind? I know, is difficult if you don’t have the engine in front of you, but ev. had the same effect someone here… Greetings Dominik