resolve freeze problem after build