solve freeze problem

solve freeze problem