Several thoughts. First, the TPS usually only indicates a closed throttle (TPS less than 2%) so that the ECU can know when to manipulate the IAC motor and thereby control idle speed. So it is possible that the TPS may not be totally responsible for your erratic idle condition.
Idle fueling is...