You can also double check the O2 sensor reference ground wire is still connected properly. It is the one which grounds to the block under the air filter housing, pretty much in the far corner passenger side and towards the front of the car. You can identify it fairly easily because a couple inches of the ground wire has a red wrap on it. The wire is only six inches or so long and the free end has a black quick connector (very similar to the ones used on the ballast resistor connections). The other end of that wire ultimately connects with the ECU behind the driver's seat. It could be another wiring connection that's not making good contact or not connected at all perhaps. And easy enough to check.

O2 sensor ground.jpg

My photo is slightly misleading as I had to relocate mine since the hole it's meant to go into had a broken off screw in it. The red arrow points to the hole your red ground wire is probably screwed into.