I was recently told in class that this sentence is correct:
"He reprogrammed the system, and in doing so, we lost crucial data."
It just doesn't feel right to me - my intuition is that the subject on both sides of "in doing so" should be the same. Something like "He reprogrammed the system, and in doing so, caused us to lose crucial data."
Is my intuition off, or is the original sentence wrong?