Fix CPU loop