fix the bug that unfreeze warning flush the error.

fix the bug that unfreeze warning flush the error.