fix freezing failure