fixed a small crash when the configure exited