fix CPU 100% issue