fix serious bug with CPU 100%