Fix 100% CPU utilization