He made a mistake, but then he corrected the situation ________ it got worse.
#32998
A
until
B
when
C
before
D
as