bugfix for linux affinity code