You were careful with the second bank O2 sensor you had to R&R correct? (Like not letting it hang from it's wiring, smack the sensing end, clean it with anything, etc)
That would be my guess for why you got the CEL. A big leak right at the flange might do it??? Theoretically...