Fix the high CPU usage