Fix CPU affinity problem