fixed CPU loop issue