well i dont know for sure but that would be the first thing i would look at. unmetered air flowing past the maf would cause all kinds of weird idle problems, from too low idle to too high idle to stalling out. i would suggest thouroughly inspecting all the vacuum hoses, for cracks, pinches, kinks and holes before replacing the tps (for the third time, which i find hard to fathom). i had all sorts of wierd idle problems after i had my engine replaced, come to find out the idiot mechanic left a hose disconnected off the EGR.