fix high CPU usage