fix cpu usage issue