Fixed CPU hogging error