Check the wiring going to the TPS and the connector. I'm not sure why the misfiring would temporarily "solve" the TPS issue. I got that correct, right? That's weird.