Fix the termination error.