fixed exit.
fixed exit