Did you get the same engine? MEMS 1.9, with distributer cap?
Here's how you reset the TPS/Stepper motor.
key in ignition, switch to position II, dont start it., press accelerator to the floor 5 times in succession, take foot off switch to position I, remove key. then start and see if it idles at 750rpm when warm.