Fix cpu loop