Fix thr->cpu if NULL