fix cpu loop