fixed a terminate issue