fix not unfreezing in certain situation