Was the whole throttle body replaced or just the TPS? Either way, test the TPS to see if the open and close voltages are correct.
Other things to check is the cam timing, ignition, IAT, O2, and MAP sensor. Though, it runs fine as long as it's not at WOT?