fix cpu usage problem