fix high cpu usage issue