While she had escaped confinement, it was largely a measure of luck and the underlying principles which had led to her commitment still existed.
She had escaped confinement. It was largely a measure of luck. The underlying principles still existed. These underlying principles had led to her commitment.